Buggy code:
public class IDMSubsystemReader_1_0 implements XMLStreamConstants , XMLElementReader < List < ModelNode > > { @ Override public void readElement ( XMLExtendedStreamReader reader , List < ModelNode > addOperations ) throws XMLStreamException { } private void readElement_1_0 ( XMLExtendedStreamReader reader , ModelNode subsystemNode , List < ModelNode > addOperations ) throws XMLStreamException { } private void parseIdentityManagementConfig ( final XMLExtendedStreamReader reader , final ModelNode parentNode , final List < ModelNode > addOperations ) throws XMLStreamException { } private void parseIdentityConfigurationConfig ( final XMLExtendedStreamReader reader , final ModelNode parentNode , final List < ModelNode > addOperations ) throws XMLStreamException { } private void parseJPAStoreConfig ( final XMLExtendedStreamReader reader , final ModelNode identityConfigurationNode , final List < ModelNode > addOperations ) throws XMLStreamException { } private void parseFileStoreConfig ( final XMLExtendedStreamReader reader , final ModelNode identityManagementNode , final List < ModelNode > addOperations ) throws XMLStreamException { } private void parseLDAPStoreConfig ( final XMLExtendedStreamReader reader , final List < ModelNode > addOperations , final ModelNode identityManagementNode ) throws XMLStreamException { } private void parseLDAPMappingConfig ( final XMLExtendedStreamReader reader , final ModelNode identityProviderNode , final List < ModelNode > addOperations ) throws XMLStreamException { String name = reader . getAttributeValue ( "" , COMMON_CLASS_NAME . getName ( ) ) ; if ( name == null ) { name = reader . getAttributeValue ( "" , COMMON_CODE . getName ( ) ) ; if ( name != null ) { <START_BUG> name = CredentialTypeEnum . forType ( name ) ; <END_BUG> } } ModelNode ldapMappingConfig = parseConfig ( reader , LDAP_STORE_MAPPING , name , identityProviderNode , INSTANCE . getAttributes ( ) , addOperations ) ; parseElement ( new IDMSubsystemReader_1_0 . ElementParser ( ) { @ Override public void parse ( final XMLExtendedStreamReader reader , final ModelElement element , final ModelNode parentNode , List < ModelNode > addOperations ) throws XMLStreamException { switch ( element ) { case LDAP_STORE_ATTRIBUTE : parseConfig ( reader , LDAP_STORE_ATTRIBUTE , NAME . getName ( ) , parentNode , LDAPStoreAttributeResourceDefinition . INSTANCE . getAttributes ( ) , addOperations ) ; break ; } } } , LDAP_STORE_MAPPING , ldapMappingConfig , reader , addOperations ) ; } private ModelNode parseCredentialHandlerConfig ( XMLExtendedStreamReader reader , ModelNode identityProviderNode , List < ModelNode > addOperations ) throws XMLStreamException { } private String resolveNodeName ( XMLExtendedStreamReader reader , SimpleAttributeDefinition primaryAttribute , SimpleAttributeDefinition alternativeAttribute ) { } private ModelNode parseSupportedTypesConfig ( final XMLExtendedStreamReader reader , final ModelNode identityStoreNode , final List < ModelNode > addOperations ) throws XMLStreamException { } private ModelNode createSubsystemRoot ( ) { } private ModelNode parseConfig ( XMLExtendedStreamReader reader , ModelElement xmlElement , String key , ModelNode lastNode , List < SimpleAttributeDefinition > attributes , List < ModelNode > addOperations ) throws XMLStreamException { } private void parseElement ( final IDMSubsystemReader_1_0 . ElementParser parser , ModelElement parentElement , final ModelNode parentNode , final XMLExtendedStreamReader reader , final List < ModelNode > addOperations ) throws XMLStreamException { } private interface ElementParser { void parse ( XMLExtendedStreamReader reader , ModelElement element , ModelNode parentNode , List < ModelNode > addOperations ) throws XMLStreamException { } } }

Fix:
name = AttributedTypeEnum . forType ( name ) ;