context.getRegistry().applyLifecycle(model);
final Service service = new SedaService(context);
service.setName(name);
final SingletonObjectFactory of = new SingletonObjectFactory(clazz, props);
of.initialise();
final JavaComponent component = new DefaultJavaComponent(of);
((MuleContextAware) component).setMuleContext(context);
service.setComponent(component);
service.setModel(model);
if (initialize)