Buggy code:
public final class InfinispanSubsystemXMLReader_1_3 implements XMLElementReader < List < ModelNode > > { @ Override public void readElement ( XMLExtendedStreamReader reader , List < ModelNode > operations ) throws XMLStreamException { } private void parseContainer ( XMLExtendedStreamReader reader , PathAddress subsystemAddress , List < ModelNode > operations ) throws XMLStreamException { } private void parseTransport ( XMLExtendedStreamReader reader , PathAddress containerAddress , List < ModelNode > operations ) throws XMLStreamException { } private void parseCacheAttribute ( XMLExtendedStreamReader reader , int index , Attribute attribute , String value , ModelNode cache ) throws XMLStreamException { } private void parseClusteredCacheAttribute ( XMLExtendedStreamReader reader , int index , Attribute attribute , String value , ModelNode cache ) throws XMLStreamException { } private void parseLocalCache ( XMLExtendedStreamReader reader , PathAddress containerAddress , List < ModelNode > operations ) throws XMLStreamException { } private void parseDistributedCache ( XMLExtendedStreamReader reader , PathAddress containerAddress , List < ModelNode > operations ) throws XMLStreamException { ModelNode cache = Util . getEmptyOperation ( ADD , null ) ; List < ModelNode > additionalConfigurationOperations = new ArrayList < ModelNode > ( ) ; for ( int i = 0 ; i < ( reader . getAttributeCount ( ) ) ; i ++ ) { String value = reader . getAttributeValue ( i ) ; Attribute attribute = Attribute . forName ( reader . getAttributeLocalName ( i ) ) ; switch ( attribute ) { case OWNERS : { OWNERS . parseAndSetParameter ( value , cache , reader ) ; break ; } case VIRTUAL_NODES : { ModelNode virtualNodesValue = VIRTUAL_NODES . parse ( value , reader ) ; <START_BUG> SEGMENTS . parseAndSetParameter ( InfinispanResourceAndOperationTransformer_1_3 . virtualNodesToSegments ( virtualNodesValue . toString ( ) ) , cache , reader ) ; <END_BUG> break ; } case L1_LIFESPAN : { L1_LIFESPAN . parseAndSetParameter ( value , cache , reader ) ; break ; } default : { this . parseClusteredCacheAttribute ( reader , i , attribute , value , cache ) ; } } } if ( ! ( cache . hasDefined ( NAME ) ) ) { throw ParseUtils . missingRequired ( reader , EnumSet . of ( Attribute . NAME ) ) ; } if ( ! ( cache . hasDefined ( MODE ) ) ) { throw ParseUtils . missingRequired ( reader , EnumSet . of ( Attribute . MODE ) ) ; } addCacheNameToAddress ( cache , containerAddress , DISTRIBUTED_CACHE ) ; while ( ( reader . hasNext ( ) ) && ( ( reader . nextTag ( ) ) != ( XMLStreamConstants . END_ELEMENT ) ) ) { Element element = Element . forName ( reader . getLocalName ( ) ) ; switch ( element ) { case STATE_TRANSFER : { this . parseStateTransfer ( reader , cache , additionalConfigurationOperations ) ; break ; } default : { this . parseCacheElement ( reader , element , cache , additionalConfigurationOperations ) ; } } } operations . add ( cache ) ; for ( ModelNode additionalOperation : additionalConfigurationOperations ) { operations . add ( additionalOperation ) ; } } private void parseReplicatedCache ( XMLExtendedStreamReader reader , PathAddress containerAddress , List < ModelNode > operations ) throws XMLStreamException { } private void parseInvalidationCache ( XMLExtendedStreamReader reader , PathAddress containerAddress , List < ModelNode > operations ) throws XMLStreamException { } private void addCacheNameToAddress ( ModelNode cache , PathAddress containerAddress , String cacheType ) { } private void parseCacheElement ( XMLExtendedStreamReader reader , Element element , ModelNode cache , List < ModelNode > operations ) throws XMLStreamException { } private void parseStateTransfer ( XMLExtendedStreamReader reader , ModelNode cache , List < ModelNode > operations ) throws XMLStreamException { } private void parseLocking ( XMLExtendedStreamReader reader , ModelNode cache , List < ModelNode > operations ) throws XMLStreamException { } private void parseTransaction ( XMLExtendedStreamReader reader , ModelNode cache , List < ModelNode > operations ) throws XMLStreamException { } private void parseEviction ( XMLExtendedStreamReader reader , ModelNode cache , List < ModelNode > operations ) throws XMLStreamException { } private void parseExpiration ( XMLExtendedStreamReader reader , ModelNode cache , List < ModelNode > operations ) throws XMLStreamException { } private void parseCustomStore ( XMLExtendedStreamReader reader , ModelNode cache , List < ModelNode > operations ) throws XMLStreamException { } private void parseFileStore ( XMLExtendedStreamReader reader , ModelNode cache , List < ModelNode > operations ) throws XMLStreamException { } private void parseRemoteStore ( XMLExtendedStreamReader reader , ModelNode cache , List < ModelNode > operations ) throws XMLStreamException { } private void parseRemoteServer ( XMLExtendedStreamReader reader , ModelNode server ) throws XMLStreamException { } private void parseStringKeyedJDBCStore ( XMLExtendedStreamReader reader , ModelNode cache , List < ModelNode > operations ) throws XMLStreamException { } private void parseBinaryKeyedJDBCStore ( XMLExtendedStreamReader reader , ModelNode cache , List < ModelNode > operations ) throws XMLStreamException { } private void parseMixedKeyedJDBCStore ( XMLExtendedStreamReader reader , ModelNode cache , List < ModelNode > operations ) throws XMLStreamException { } private void parseJDBCStoreTable ( XMLExtendedStreamReader reader , ModelNode table ) throws XMLStreamException { } private void parseJDBCStoreColumn ( XMLExtendedStreamReader reader , ModelNode column ) throws XMLStreamException { } private void parseStoreAttribute ( XMLExtendedStreamReader reader , int index , Attribute attribute , String value , ModelNode store ) throws XMLStreamException { } private void parseStoreElements ( XMLExtendedStreamReader reader , ModelNode store , List < ModelNode > operations ) throws XMLStreamException { } private void parseStoreWriteBehind ( XMLExtendedStreamReader reader , ModelNode store , List < ModelNode > operations ) throws XMLStreamException { } private void parseStoreProperty ( XMLExtendedStreamReader reader , ModelNode node , final List < ModelNode > operations ) throws XMLStreamException { } }

Fix:
SEGMENTS . parseAndSetParameter ( SegmentsAndVirtualNodeConverter . virtualNodesToSegments ( virtualNodesValue . toString ( ) ) , cache , reader ) ;