QueueProfile queueProfile = QueueProfile.newInstancePersistingToDefaultMemoryQueueStore(muleContext);
s.setQueueProfile(queueProfile);
((CompositeMessageSource) s.getMessageSource()).addSource(
muleContext.getEndpointFactory().getInboundEndpoint(newEndpoint));
final DefaultJavaComponent component = new DefaultJavaComponent(new SingletonObjectFactory(listener));
component.setMuleContext(muleContext);
s.setComponent(component);
muleContext.getRegistry().registerService(s);
return true;
}