Buggy code:
protected void handleUnknownConfigurationAttribute ( XMLExtendedStreamReader reader , Element element , ModelNode operation ) throws XMLStreamException { } private static void processConnectorServices ( XMLExtendedStreamReader reader , ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } private static void processConnectorService ( XMLExtendedStreamReader reader , ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } private void processClusterConnections ( XMLExtendedStreamReader reader , ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } protected void processClusterConnection ( XMLExtendedStreamReader reader , ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } protected void handleUnknownClusterConnectionAttribute ( XMLExtendedStreamReader reader , Element element , ModelNode clusterConnectionAdd ) throws XMLStreamException { } protected void checkClusterConnectionConstraints ( XMLExtendedStreamReader reader , Set < Element > seen ) throws XMLStreamException { } protected void checkBroadcastGroupConstraints ( XMLExtendedStreamReader reader , Set < Element > seen ) throws XMLStreamException { } private void processBridges ( XMLExtendedStreamReader reader , ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } protected void processBridge ( XMLExtendedStreamReader reader , ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } protected void processStaticConnectors ( XMLExtendedStreamReader reader , ModelNode addOperation , boolean cluster ) throws XMLStreamException { } private void processGroupingHandler ( XMLExtendedStreamReader reader , ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } private void processRemotingInterceptors ( XMLExtendedStreamReader reader , ModelNode operation ) throws XMLStreamException { } void processBroadcastGroups ( XMLExtendedStreamReader reader , ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } protected void parseBroadcastGroup ( XMLExtendedStreamReader reader , ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } protected void handleUnknownBroadcastGroupAttribute ( XMLExtendedStreamReader reader , Element element , ModelNode operation ) throws XMLStreamException { } void processDiscoveryGroups ( XMLExtendedStreamReader reader , ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } protected void parseDiscoveryGroup ( XMLExtendedStreamReader reader , ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } protected void handleUnknownDiscoveryGroupAttribute ( XMLExtendedStreamReader reader , Element element , ModelNode operation ) throws XMLStreamException { } protected void checkDiscoveryGroupConstraints ( XMLExtendedStreamReader reader , Set < Element > seen ) throws XMLStreamException { } void processConnectionFactories ( final XMLExtendedStreamReader reader , ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } static void processJmsDestinations ( final XMLExtendedStreamReader reader , final ModelNode address , List < ModelNode > updates ) throws XMLStreamException { } static void processAcceptors ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { } static void parseQueues ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } static void parseQueue ( final XMLExtendedStreamReader reader , final ModelNode queue ) throws XMLStreamException { } private ModelNode processSecuritySettings ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > operations ) throws XMLStreamException { } private void parseSecurityRoles ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > operations ) throws XMLStreamException { } protected List < String > parseRolesAttribute ( final XMLExtendedStreamReader reader , int index ) throws XMLStreamException { } static void processConnectors ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { } static void processAddressSettings ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > operations ) throws XMLStreamException { } static ModelNode parseAddressSettings ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } static void parseTransportConfiguration ( final XMLExtendedStreamReader reader , final ModelNode operation , final boolean generic ) throws XMLStreamException { } static void parseDirectory ( final XMLExtendedStreamReader reader , final String name , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { ModelNode path = null ; String relativeTo = null ; final int count = reader . getAttributeCount ( ) ; for ( int i = 0 ; i < count ; i ++ ) { requireNoNamespaceAttribute ( reader , i ) ; final Attribute attribute = Attribute . forName ( reader . getAttributeLocalName ( i ) ) ; final String value = reader . getAttributeValue ( i ) ; switch ( attribute ) { case RELATIVE_TO : relativeTo = value ; break ; case PATH : <START_BUG> path = PATHS . get ( name ) . parse ( value , reader . getLocation ( ) ) ; <END_BUG> break ; default : throw unexpectedAttribute ( reader , i ) ; } } if ( path == null ) { throw ParseUtils . missingRequired ( reader , Collections . singleton ( PATH ) ) ; } requireNoContent ( reader ) ; final ModelNode operation = new ModelNode ( ) ; operation . get ( OP ) . set ( ADD ) ; operation . get ( OP_ADDR ) . set ( address ) ; operation . get ( OP_ADDR ) . add ( ModelDescriptionConstants . PATH , name ) ; operation . get ( ModelDescriptionConstants . PATH ) . set ( path ) ; if ( relativeTo != null ) operation . get ( RELATIVE_TO ) . set ( relativeTo ) ; updates . add ( operation ) ; } private static void parseDiverts ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private static void parseDivert ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } static void unhandledElement ( XMLExtendedStreamReader reader , Element element ) throws XMLStreamException { } static void handleElementText ( final XMLExtendedStreamReader reader , final Element element , final ModelNode node ) throws XMLStreamException { } static void handleElementText ( final XMLExtendedStreamReader reader , final Element element , final String modelName , final ModelNode node ) throws XMLStreamException { } static void skipElementText ( final XMLExtendedStreamReader reader ) throws XMLStreamException { }

Fix:
path = PATHS . get ( name ) . parse ( value , reader ) ;