public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException {
final ManagedBeanConfigurations managedBeanConfigurations = context.getAttachment(ManagedBeanConfigurations.ATTACHMENT_KEY);
if(managedBeanConfigurations == null) {
return; // Skip deployments with no managed beans.
}
final ModuleContextConfig moduleContext = context.getAttachment(ModuleContextConfig.ATTACHMENT_KEY);
if(moduleContext == null) {
throw new DeploymentUnitProcessingException("Unable to deploy managed beans without a module naming context");
}
final BatchBuilder batchBuilder = context.getBatchBuilder();