code: public void addMessagingFactory( IMessagingClientFactory clientFactory ) {
  
  		if( this.messagingClient.getRegistry() == null ) {
  			MessagingClientFactoryRegistry registry = new MessagingClientFactoryRegistry();
  			this.messagingClient.setRegistry( registry );
  		}
  
  		this.messagingClient.getRegistry().addMessagingClientFactory( clientFactory );
  	}
docs: Adds a messaging client factory.
  <p>
  WARNING: this method is made available only to be used in non-OSGi environments
  (e.g. Maven, embedded mode, etc). If you are not sure, do not use it.
  </p>
  
  @param clientFactory a non-null client factory