if (du.getAttachment(GateInEarKey.KEY) != null) {
// Install InitService with dependency on all the deployment modules reaching POST_MODULE
// TODO: we are starting up InitService before child modules (jboss.deployment.subunit.*) have gone through
// POST_MODULE
final ServiceBuilder<InitService> builder = target.addService(initSvcName, new InitService(config))
.addDependency(GateInExtension.deploymentUnitName(config.getGateInEarModule(), Phase.POST_MODULE));
for (ModuleIdentifier module : config.getGateInExtModules()) {
builder.addDependency(GateInExtension.deploymentUnitName(module, Phase.POST_MODULE));
}