/** * Create a new instance that enable publishing notifications for the specified Collector instance. * * @param configuration * the Collector instance configuration details * @return the created instance * @throws NullPointerException * if the parameter is {@code null} */ public static NotificationPublisher newInstance(final CollectorConfiguration configuration) { checkNotNull(configuration,"Collector configuration cannot be null"); return new NotificationPublisher(configuration); }