Buggy code:
public class JPAExtension implements Extension { public static final String SUBSYSTEM_NAME = "jpa" ; private static final JPAExtension . JPASubsystemElementParser1_1 parser1_1 = new JPAExtension . JPASubsystemElementParser1_1 ( ) ; private static final JPAExtension . JPASubsystemElementParser1_0 parser1_0 = new JPAExtension . JPASubsystemElementParser1_0 ( ) ; private static final String RESOURCE_NAME = ( JPAExtension . class . getPackage ( ) . getName ( ) ) + ".LocalDescriptions" ; static StandardResourceDescriptionResolver getResourceDescriptionResolver ( final String ... keyPrefix ) { } private static final int MANAGEMENT_API_MAJOR_VERSION = 1 ; private static final int MANAGEMENT_API_MINOR_VERSION = 2 ; private static final int MANAGEMENT_API_MICRO_VERSION = 0 ; @ Override public void initialize ( ExtensionContext context ) { } @ Override public void initializeParsers ( ExtensionParsingContext context ) { } private void initializeTransformers_1_1_0 ( SubsystemRegistration subsystemRegistration ) { final RejectExpressionValuesChainedTransformer rejectNewerExpressions = new RejectExpressionValuesChainedTransformer ( JPADefinition . DEFAULT_DATASOURCE , JPADefinition . DEFAULT_EXTENDEDPERSISTENCE_INHERITANCE ) ; TransformersSubRegistration reg = subsystemRegistration . registerModelTransformers ( ModelVersion . create ( 1 , 1 , 0 ) , new org . jboss . as . controller . transform . chained . ChainedResourceTransformer ( new ChainedResourceTransformerEntry ( ) { @ Override public void transformResource ( ChainedResourceTransformationContext context , PathAddress address , Resource resource ) throws OperationFailedException { resource . getModel ( ) . remove ( DEFAULT_EXTENDEDPERSISTENCE_INHERITANCE . getName ( ) ) ; } } , rejectNewerExpressions ) ) ; reg . registerOperationTransformer ( ADD , new ChainedOperationTransformer ( new AbstractOperationTransformer ( ) { @ Override protected ModelNode transform ( TransformationContext context , PathAddress address , ModelNode operation ) { if ( operation . has ( DEFAULT_EXTENDEDPERSISTENCE_INHERITANCE . getName ( ) ) ) { operation . remove ( DEFAULT_EXTENDEDPERSISTENCE_INHERITANCE . getName ( ) ) ; } return operation ; } } , rejectNewerExpressions ) ) ; reg . registerOperationTransformer ( WRITE_ATTRIBUTE_OPERATION , new ChainedOperationTransformer ( new OperationTransformer ( ) { @ Override public TransformedOperation transformOperation ( TransformationContext context , PathAddress address , ModelNode operation ) throws OperationFailedException { <START_BUG> if ( operation . get ( NAME ) . equals ( DEFAULT_EXTENDEDPERSISTENCE_INHERITANCE . getName ( ) ) ) { <END_BUG> return DEFAULT . transformOperation ( context , address , operation ) ; } return rejectNewerExpressions . getWriteAttributeTransformer ( ) . transformOperation ( context , address , operation ) ; } } ) ) ; } static class JPASubsystemElementParser1_1 implements XMLStreamConstants , XMLElementReader < List < ModelNode > > , XMLElementWriter < SubsystemMarshallingContext > { @ Override public void readElement ( XMLExtendedStreamReader reader , List < ModelNode > list ) throws XMLStreamException { } private ModelNode parseJPA ( XMLExtendedStreamReader reader , Namespace readerNS ) throws XMLStreamException { } @ Override public void writeContent ( final XMLExtendedStreamWriter writer , final SubsystemMarshallingContext context ) throws XMLStreamException { } } static class JPASubsystemElementParser1_0 implements XMLStreamConstants , XMLElementReader < List < ModelNode > > { @ Override public void readElement ( XMLExtendedStreamReader reader , List < ModelNode > list ) throws XMLStreamException { } private ModelNode parseJPA ( XMLExtendedStreamReader reader , Namespace readerNS ) throws XMLStreamException { } } }

Fix:
if ( operation . get ( NAME ) . asString ( ) . equals ( DEFAULT_EXTENDEDPERSISTENCE_INHERITANCE . getName ( ) ) ) {