}
boolean requireBeanDescriptor = requireBeanDescriptorGlobal;
boolean nonPortableMode = nonPortableModeGlobal;
WeldJBossAllConfiguration configuration = deploymentUnit.getAttachment(WeldJBossAllConfiguration.ATTACHMENT_KEY);
if (configuration != null) {
requireBeanDescriptor = getValue(configuration.getRequireBeanDescriptor(), requireBeanDescriptorGlobal);
nonPortableMode = getValue(configuration.getNonPortableMode(), nonPortableMode);
}
WeldConfiguration mergedConfiguration = new WeldConfiguration(requireBeanDescriptor, nonPortableMode);
deploymentUnit.putAttachment(WeldConfiguration.ATTACHMENT_KEY, mergedConfiguration);
}