final GateInConfiguration config = du.getAttachment(GateInConfigurationKey.KEY);
final ModuleIdentifier moduleId = du.getAttachment(Attachments.MODULE_IDENTIFIER);
if (isLastModuleStarting(config, moduleId)) {
final StartupService startup = new StartupService();
startup.setGateInModule(du.getAttachment(Attachments.MODULE));
final ServiceBuilder<StartupService> builder = phaseContext.getServiceTarget().addService(
StartupService.SERVICE_NAME, startup);
builder.addDependency(GateInExtension.deploymentUnitName(config.getGateInEarModule(), Phase.CLEANUP));