return component;
}
public ServiceAssemblyImpl registerServiceAssembly(Bundle bundle, ServiceAssemblyDesc serviceAssemblyDesc, List<ServiceUnitImpl> sus) throws Exception {
// Now create the SA and initialize it
ServiceAssemblyImpl sa = new ServiceAssemblyImpl(bundle, serviceAssemblyDesc, sus,
storage.getStorage(serviceAssemblyDesc.getIdentification().getName()),
endpointListener, autoStart);
sa.setShutdownTimeout(shutdownTimeout);
sa.setListenerRegistry(listenerRegistry);
sa.init();
serviceAssemblies.put(sa.getName(), sa);
// populate props from the component meta-data
Dictionary<String, String> props = new Hashtable<String, String>();
props.put(NAME, serviceAssemblyDesc.getIdentification().getName());
// register the service assembly in the OSGi registry
LOGGER.debug("Registering JBI service assembly");