Buggy code:
public final class ModelXmlParsers { private ModelXmlParsers ( ) { } public static void registerAll ( final XMLMapper xmlMapper ) { } public static final XMLElementReader < List < ? super AbstractDomainModelUpdate < ? > > > DOMAIN_XML_READER = new XMLElementReader < List < ? super AbstractDomainModelUpdate < ? > > > ( ) { public void readElement ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > objects ) throws XMLStreamException { } } ; public static final XMLElementReader < List < ? super AbstractHostModelUpdate < ? > > > HOST_XML_READER = new XMLElementReader < List < ? super AbstractHostModelUpdate < ? > > > ( ) { public void readElement ( final XMLExtendedStreamReader reader , final List < ? super AbstractHostModelUpdate < ? > > objects ) throws XMLStreamException { } } ; public static final XMLElementReader < List < ? super AbstractServerModelUpdate < ? > > > SERVER_XML_READER = new XMLElementReader < List < ? super AbstractServerModelUpdate < ? > > > ( ) { public void readElement ( final XMLExtendedStreamReader reader , final List < ? super AbstractServerModelUpdate < ? > > objects ) throws XMLStreamException { } } ; public static void parseServerRootElement ( final XMLExtendedStreamReader reader , final List < ? super AbstractServerModelUpdate < ? > > list ) throws XMLStreamException { } public static void parseHostRootElement ( final XMLExtendedStreamReader reader , final List < ? super AbstractHostModelUpdate < ? > > list ) throws XMLStreamException { } public static void parseDomainRootElement ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list ) throws XMLStreamException { } static void parseExtensions ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list ) throws XMLStreamException { } static void parseProfiles ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list ) throws XMLStreamException { requireNoAttributes ( reader ) ; final Set < String > names = new HashSet < String > ( ) ; while ( ( reader . nextTag ( ) ) != ( XMLStreamConstants . END_ELEMENT ) ) { final String name = readStringAttributeElement ( reader , NAME . getLocalName ( ) ) ; if ( ! ( names . add ( name ) ) ) { throw new XMLStreamException ( "Duplicate<seq2seq4repair_space>profile<seq2seq4repair_space>declaration" , reader . getLocation ( ) ) ; } final Set < String > includes = new LinkedHashSet < String > ( ) ; OUT : while ( ( reader . nextTag ( ) ) != ( XMLStreamConstants . END_ELEMENT ) ) { switch ( Namespace . forUri ( reader . getNamespaceURI ( ) ) ) { case DOMAIN_1_0 : { if ( ( Element . forName ( reader . getLocalName ( ) ) ) != ( Element . INCLUDE ) ) { throw unexpectedElement ( reader ) ; } final String includedName = readStringAttributeElement ( reader , NAME . getLocalName ( ) ) ; if ( ! ( names . contains ( includedName ) ) ) { throw new XMLStreamException ( "No<seq2seq4repair_space>profile<seq2seq4repair_space>found<seq2seq4repair_space>for<seq2seq4repair_space>inclusion" , reader . getLocation ( ) ) ; } if ( ! ( includes . add ( includedName ) ) ) { throw new XMLStreamException ( "Duplicate<seq2seq4repair_space>profile<seq2seq4repair_space>include" , reader . getLocation ( ) ) ; } break ; } default : { break OUT ; } } } final Set < String > configuredSubsystemTypes = new HashSet < String > ( ) ; while ( ( reader . nextTag ( ) ) != ( XMLStreamConstants . END_ELEMENT ) ) { switch ( Namespace . forUri ( reader . getNamespaceURI ( ) ) ) { case UNKNOWN : { if ( ( Element . forName ( reader . getLocalName ( ) ) ) != ( Element . SUBSYSTEM ) ) { throw unexpectedElement ( reader ) ; } if ( configuredSubsystemTypes . add ( reader . getNamespaceURI ( ) ) ) { throw new XMLStreamException ( "Duplicate<seq2seq4repair_space>subsystem<seq2seq4repair_space>declaration" , reader . getLocation ( ) ) ; } final List < AbstractSubsystemUpdate < ? , ? > > resultList = new ArrayList < AbstractSubsystemUpdate < ? , ? > > ( ) ; reader . handleAny ( resultList ) ; for ( AbstractSubsystemUpdate < ? , ? > update : resultList ) { <START_BUG> list . add ( DomainProfileUpdate . create ( name , update ) ) ; <END_BUG> } break ; } default : { throw unexpectedElement ( reader ) ; } } } } } static void parseInterfaces ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list ) throws XMLStreamException { } static void parseSocketBindingGroups ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list ) throws XMLStreamException { } static void parseDeployments ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list ) throws XMLStreamException { } static void parseServerGroups ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list ) throws XMLStreamException { } static void parseSystemProperties ( final XMLExtendedStreamReader reader , final List < ? super AbstractDomainModelUpdate < ? > > list ) throws XMLStreamException { } private static Element nextElement ( XMLExtendedStreamReader reader ) throws XMLStreamException { } private static class ExtensionContextImpl implements ExtensionContext { private final XMLExtendedStreamReader reader ; public ExtensionContextImpl ( final XMLExtendedStreamReader reader ) { } public < E extends AbstractSubsystemElement < E > > void registerSubsystem ( final String namespaceUri , final XMLElementReader < ParseResult < SubsystemConfiguration < E > > > elementReader ) { } } }

Fix:
list . add ( DomainSubsystemUpdate . create ( name , update ) ) ;