*/
public class EJBAnnotationPropertyReplacement {
public static PropertyReplacer propertyReplacer(final DeploymentUnit deploymentUnit) {
Boolean replacement = deploymentUnit.getAttachment(Attachments.ANNOTATION_PROPERTY_REPLACEMENT);
if (replacement == null || replacement) {
final PropertyResolver propertyResolver = deploymentUnit
.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_RESOLVER);
return PropertyReplacers.resolvingReplacer(propertyResolver);
} else {
return PropertyReplacers.noop();
}