return serviceName;
}
private ServiceName installTransactionService(final ServiceTarget serviceTarget, final DeploymentUnit deploymentUnit,
WeldBootstrapService weldService, ServiceBuilder<WeldBootstrapService> weldServiceBuilder) {
final WeldTransactionServices weldTransactionServices = new WeldTransactionServices();
final ServiceName weldTransactionServiceName = deploymentUnit.getServiceName().append(
WeldTransactionServices.SERVICE_NAME);
serviceTarget.addService(weldTransactionServiceName, weldTransactionServices).addDependency(
TransactionManagerService.SERVICE_NAME, TransactionManager.class,
weldTransactionServices.getInjectedTransactionManager()).addDependency(UserTransactionService.SERVICE_NAME,
UserTransaction.class, weldTransactionServices.getInjectedTransaction()).install();
weldServiceBuilder.addDependency(weldTransactionServiceName, WeldTransactionServices.class, weldService
.getWeldTransactionServices());
return weldTransactionServiceName;