Buggy code:
static Set < String > parseExtensions ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } static void parseProfiles ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list ) throws XMLStreamException { } static void parseServerProfile ( final XMLExtendedStreamReader reader , List < ? super AbstractServerModelUpdate < ? > > list ) throws XMLStreamException { } static Set < String > parseHostInterfaces ( final XMLExtendedStreamReader reader , final List < ? super AbstractHostModelUpdate < ? > > list ) throws XMLStreamException { } static Set < String > parseServerElementInterfaces ( final String serverName , final XMLExtendedStreamReader reader , final List < ? super AbstractHostModelUpdate < ? > > list ) throws XMLStreamException { } static Set < String > parseServerModelInterfaces ( final XMLExtendedStreamReader reader , final List < ? super AbstractServerModelUpdate < ? > > list ) throws XMLStreamException { } static Set < String > parseDomainInterfaces ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list ) throws XMLStreamException { } static Set < String > parseInterfaces ( final XMLExtendedStreamReader reader , final Set < String > names , final List < InterfaceAdd > list , boolean checkSpecified ) throws XMLStreamException { } static void parseDomainSocketBindingGroups ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list , Set < String > interfaces ) throws XMLStreamException { } static SocketBindingGroupUpdate parseSocketBindingGroup ( final XMLExtendedStreamReader reader , List < SocketBindingAdd > bindingUpdates , Set < String > interfaces , boolean allowInclude ) throws XMLStreamException { } static String parseSocketBinding ( final XMLExtendedStreamReader reader , Set < String > interfaces , List < SocketBindingAdd > updates , final String inheritedInterfaceName ) throws XMLStreamException { } static void parseDeployments ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list , final String serverGroupName ) throws XMLStreamException { } static void parseServerDeployments ( final XMLExtendedStreamReader reader , final List < ? super AbstractServerModelUpdate < ? > > list ) throws XMLStreamException { } static void parseServerGroups ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list ) throws XMLStreamException { ParseUtils . requireNoAttributes ( reader ) ; final Set < String > names = new HashSet < String > ( ) ; while ( ( reader . nextTag ( ) ) != ( XMLStreamConstants . END_ELEMENT ) ) { String name = null ; String profile = null ; Collection < PropertyAdd > systemProperties = null ; final int count = reader . getAttributeCount ( ) ; for ( int i = 0 ; i < count ; i ++ ) { final String value = reader . getAttributeValue ( i ) ; if ( ( reader . getAttributeNamespace ( i ) ) != null ) { throw ParseUtils . unexpectedAttribute ( reader , i ) ; } else { final Attribute attribute = Attribute . forName ( reader . getAttributeLocalName ( i ) ) ; switch ( attribute ) { case NAME : { if ( name != null ) { throw ParseUtils . duplicateAttribute ( reader , attribute . getLocalName ( ) ) ; } if ( ! ( names . add ( value ) ) ) { throw ParseUtils . duplicateNamedElement ( reader , value ) ; } name = value ; break ; } case PROFILE : { if ( profile != null ) { throw ParseUtils . duplicateAttribute ( reader , attribute . getLocalName ( ) ) ; } profile = value ; break ; } default : throw ParseUtils . unexpectedAttribute ( reader , i ) ; } } } if ( name == null ) { throw ParseUtils . missingRequired ( reader , Collections . singleton ( NAME ) ) ; } if ( profile == null ) { throw ParseUtils . missingRequired ( reader , Collections . singleton ( PROFILE ) ) ; } <START_BUG> list . add ( new ServerGroupAdd ( name , profile ) ) ; <END_BUG> ModelXmlParsers . NamedModelUpdates < JvmElement > jvm = null ; ModelXmlParsers . NameOffset socketBinding = null ; boolean sawDeployments = false ; while ( ( reader . hasNext ( ) ) && ( ( reader . nextTag ( ) ) != ( XMLStreamConstants . END_ELEMENT ) ) ) { switch ( Namespace . forUri ( reader . getNamespaceURI ( ) ) ) { case DOMAIN_1_0 : { final Element element = Element . forName ( reader . getLocalName ( ) ) ; switch ( element ) { case JVM : { if ( jvm != null ) { throw new XMLStreamException ( ( ( element . getLocalName ( ) ) + "<seq2seq4repair_space>already<seq2seq4repair_space>defined" ) , reader . getLocation ( ) ) ; } jvm = ModelXmlParsers . parseJvm ( reader ) ; list . add ( DomainServerGroupUpdate . create ( name , new ServerGroupJvmAdd ( jvm . name ) ) ) ; for ( AbstractModelUpdate < JvmElement , ? > update : jvm . updates ) { list . add ( DomainServerGroupUpdate . create ( name , ServerGroupJvmUpdate . create ( update ) ) ) ; } break ; } case SOCKET_BINDING_GROUP : { if ( socketBinding != null ) { throw new XMLStreamException ( ( ( element . getLocalName ( ) ) + "<seq2seq4repair_space>already<seq2seq4repair_space>defined" ) , reader . getLocation ( ) ) ; } socketBinding = ModelXmlParsers . parseSocketBindingGroupRef ( reader ) ; list . add ( DomainServerGroupUpdate . create ( name , new ServerGroupSocketBindingGroupUpdate ( socketBinding . name ) ) ) ; if ( ( socketBinding . offset ) > 0 ) { list . add ( DomainServerGroupUpdate . create ( name , new ServerGroupSocketBindingPortOffsetUpdate ( socketBinding . offset ) ) ) ; } break ; } case DEPLOYMENTS : { if ( sawDeployments ) { throw new XMLStreamException ( ( ( element . getLocalName ( ) ) + "<seq2seq4repair_space>already<seq2seq4repair_space>defined" ) , reader . getLocation ( ) ) ; } sawDeployments = true ;

Fix:
list . add ( new DomainServerGroupAdd ( name , profile ) ) ;