newEndpoint = newEndpoint.substring(0, i - 1);
SedaService s = new SedaService(muleContext);
s.setName(serviceName);
s.setModel(muleContext.getRegistry().lookupSystemModel());
QueueProfile queueProfile = QueueProfile.newInstancePersistingToDefaultMemoryQueueStore(muleContext);
s.setQueueProfile(queueProfile);
((CompositeMessageSource) s.getMessageSource()).addSource(
muleContext.getEndpointFactory().getInboundEndpoint(newEndpoint));
final DefaultJavaComponent component = new DefaultJavaComponent(new SingletonObjectFactory(listener));