final JpaInjectionServices rootJpaInjectionServices = new WeldJpaInjectionServices(deploymentUnit, deploymentUnit.getServiceRegistry());
weldContainer.addWeldService(JpaInjectionServices.class, rootJpaInjectionServices);
final WeldService weldService = new WeldService(weldContainer, deploymentUnit.getName());
// add the weld service
final ServiceBuilder<WeldContainer> weldServiceBuilder = serviceTarget.addService(weldServiceName, weldService);
weldServiceBuilder.addDependencies(TCCLSingletonService.SERVICE_NAME);
installResourceInjectionService(serviceTarget, deploymentUnit, weldService, weldServiceBuilder);
installSecurityService(serviceTarget, deploymentUnit, weldService, weldServiceBuilder);