final BundleInstallService service = new BundleInstallService(deployment);
final String contextName = deploymentUnit.getName();
final ServiceName serviceName = getServiceName(contextName);
final ServiceTarget serviceTarget = phaseContext.getServiceTarget();
ServiceBuilder<BundleInstallService> builder = serviceTarget.addService(serviceName, service);
<BUG>builder.addDependency(ServiceNames.SYSTEM_CONTEXT, BundleContext.class, service.injectedBundleContext);</BUG>
builder.addDependency(ServiceNames.BUNDLE_MANAGER, BundleManagement.class, service.injectedBundleManager);
<BUG>builder.addDependency(BundleStartupProcessor.SERVICE_NAME, BundleStartupProcessor.class, service.injectedStartTracker);

builder.addDependency(org.jboss.as.server.deployment.Services.deploymentUnitName(contextName));
builder.install();</BUG>
}

final BundleInstallService service = new BundleInstallService(deployment);
final String contextName = deploymentUnit.getName();
final ServiceName serviceName = getServiceName(contextName);
final ServiceTarget serviceTarget = phaseContext.getServiceTarget();
ServiceBuilder<BundleInstallService> builder = serviceTarget.addService(serviceName, service);
builder.addDependency(ServiceNames.BUNDLE_MANAGER, BundleManagement.class, service.injectedBundleManager);
builder.addDependency(BundleStartTracker.SERVICE_NAME, BundleStartTracker.class, service.injectedStartTracker);
builder.addDependency(Services.deploymentUnitName(contextName));
builder.addDependency(ServiceNames.FRAMEWORK_INIT);
builder.install();
}
