code: private void notifyListeners(IMessagingClientFactory factory, boolean isAdded) {
  
  		for (MessagingClientFactoryListener listener : this.listeners) {
  			try {
  				if (isAdded)
  					listener.addMessagingClientFactory(factory);
  				else
  					listener.removeMessagingClientFactory(factory);
  
  			} catch (Throwable t) {
  				// Log the exception, but *do not* interrupt the notification of the other listeners.
  				this.logger.warning("Messaging client factory listener has thrown an exception: " + listener);
  				Utils.logException(this.logger, new RuntimeException(t));
  			}
  		}
  	}
docs: Notifies the messaging client factory listeners that a factory has been added/removed.
  @param factory the incoming/outgoing messaging client factory.
  @param isAdded flag indicating whether the factory has been added or removed.