BundleInfo info = BundleInfo.createBundleInfo(url);
Deployment dep = DeploymentFactory.createDeployment(info);
Integer startLevel = moduleMetaData.getStartLevel();
if (startLevel != null)
dep.setStartLevel(startLevel.intValue());
serviceName = bundleManager.installBundle(serviceTarget, dep);
} else {
ModuleLoader moduleLoader = Module.getBootModuleLoader();
Module module = moduleLoader.loadModule(identifier);
OSGiMetaData metadata = getModuleMetadata(module);
serviceName = bundleManager.registerModule(serviceTarget, module, metadata);