context.putAttachment(DeploymentStructure.ATTACHMENT_KEY, structure);
final BatchBuilder builder = context.getBatchBuilder();
final ServiceName sName = ServiceName.JBOSS.append("deployment", context.getName(), "structure");
builder.addService(sName, new DeploymentStructureService(structure));
builder.addDependency(sName);
} catch(IOException e) {
throw new DeploymentUnitProcessingException(e);
}
// Add the war metadata