final ServiceTarget serviceTarget = phaseContext.getServiceTarget();
final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODULE_DESCRIPTION);
final Catalog catalog = new Catalog(); // One per deployment
final TransactionEntityMap entityMap = new TransactionEntityMap();
final ServiceName entityMapServiceName = deploymentUnit.getServiceName().append("cmp", "entity-map");
serviceTarget.addService(entityMapServiceName, entityMap)
.addDependency(TxnServices.JBOSS_TXN_TRANSACTION_MANAGER, TransactionManager.class, entityMap.getTransactionManagerInjector())
.install();
// Hate to use barriers across the board, but since the queries can add dependencies that are difficult to detect
// we do all entity stores in phase chunks