appclient/src/main/java/org/jboss/as/appclient/subsystem/parsing/AppClientXml.java
private void readServerElement_1_0(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list)
            throws XMLStreamException {

        parseNamespaces(reader, address, list);

        String serverName = null;

        // attributes
        final int count = reader.getAttributeCount();
        for (int i = 0; i < count; i++) {
            switch (Namespace.forUri(reader.getAttributeNamespace(i))) {
                case NONE: {
                    final String value = reader.getAttributeValue(i);
                    final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
                    switch (attribute) {
                        case NAME: {
                            serverName = value;
                            break;
                        }
                        default:
                            throw unexpectedAttribute(reader, i);
                    }
                    break;
                }
                case XML_SCHEMA_INSTANCE: {
                    switch (Attribute.forName(reader.getAttributeLocalName(i))) {
                        case SCHEMA_LOCATION: {
                            parseSchemaLocations(reader, address, list, i);
                            break;
                        }
                        case NO_NAMESPACE_SCHEMA_LOCATION: {
                            // todo, jeez
                            break;
                        }
                        default: {
                            throw unexpectedAttribute(reader, i);
                        }
                    }
                    break;
                }
                default:
                    throw unexpectedAttribute(reader, i);
            }
        }

        setServerName(address, list, serverName);

        // elements - sequence

        Element element = nextElement(reader, DOMAIN_1_0);
        if (element == Element.EXTENSIONS) {
            extensionXml.parseExtensions(reader, address, DOMAIN_1_0, list);
            element = nextElement(reader, DOMAIN_1_0);
        }
        // System properties
        if (element == Element.SYSTEM_PROPERTIES) {
            parseSystemProperties(reader, address, DOMAIN_1_0, list, true);
            element = nextElement(reader, DOMAIN_1_0);
        }
        if (element == Element.PATHS) {
            parsePaths(reader, address, DOMAIN_1_0, list, true);
            element = nextElement(reader, DOMAIN_1_0);
        }

        // Single profile
        if (element == Element.PROFILE) {
            parseServerProfile(reader, address, list);
            element = nextElement(reader, DOMAIN_1_0);
        }

        // Interfaces
        final Set<String> interfaceNames = new HashSet<String>();
        if (element == Element.INTERFACES) {
            parseInterfaces(reader, interfaceNames, address, DOMAIN_1_0, list, true);
            element = nextElement(reader, DOMAIN_1_0);
        }
        // Single socket binding group
        if (element == Element.SOCKET_BINDING_GROUP) {
            parseSocketBindingGroup(reader, interfaceNames, address, DOMAIN_1_0, list);
            element = nextElement(reader, DOMAIN_1_0);
        }
        if (element != null) {
            throw unexpectedElement(reader);
        }
    }
private void readServerElement_1_0(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list)
            throws XMLStreamException {

        parseNamespaces(reader, address, list);

        String serverName = null;

        // attributes
        final int count = reader.getAttributeCount();
        for (int i = 0; i < count; i++) {
            switch (Namespace.forUri(reader.getAttributeNamespace(i))) {
                case NONE: {
                    final String value = reader.getAttributeValue(i);
                    final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
                    switch (attribute) {
                        case NAME: {
                            serverName = value;
                            break;
                        }
                        default:
                            throw unexpectedAttribute(reader, i);
                    }
                    break;
                }
                case XML_SCHEMA_INSTANCE: {
                    switch (Attribute.forName(reader.getAttributeLocalName(i))) {
                        case SCHEMA_LOCATION: {
                            parseSchemaLocations(reader, address, list, i);
                            break;
                        }
                        case NO_NAMESPACE_SCHEMA_LOCATION: {
                            // todo, jeez
                            break;
                        }
                        default: {
                            throw unexpectedAttribute(reader, i);
                        }
                    }
                    break;
                }
                default:
                    throw unexpectedAttribute(reader, i);
            }
        }

        setServerName(address, list, serverName);

        // elements - sequence

        Element element = nextElement(reader, DOMAIN_1_0);
        if (element == Element.EXTENSIONS) {
            extensionXml.parseExtensions(reader, address, DOMAIN_1_0, list);
            element = nextElement(reader, DOMAIN_1_0);
        }
        // System properties
        if (element == Element.SYSTEM_PROPERTIES) {
            parseSystemProperties(reader, address, DOMAIN_1_0, list, true);
            element = nextElement(reader, DOMAIN_1_0);
        }
        if (element == Element.PATHS) {
            parsePaths(reader, address, DOMAIN_1_0, list, true);
            element = nextElement(reader, DOMAIN_1_0);
        }

        // Single profile
        if (element == Element.PROFILE) {
            parseServerProfile(reader, address, list);
            element = nextElement(reader, DOMAIN_1_0);
        }

        // Interfaces
        final Set<String> interfaceNames = new HashSet<String>();
        if (element == Element.INTERFACES) {
            parseInterfaces(reader, interfaceNames, address, DOMAIN_1_0, list, true);
            element = nextElement(reader, DOMAIN_1_0);
        }
        // Single socket binding group
        if (element == Element.SOCKET_BINDING_GROUP) {
            parseSocketBindingGroup(reader, interfaceNames, address, DOMAIN_1_0, list);
            element = nextElement(reader, DOMAIN_1_0);
        }
        if (element != null) {
            throw unexpectedElement(reader);
        }
    }
private void readServerElement_1_0 ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { parseNamespaces ( reader , address , list ) ; String serverName = null ; // attributes final int count = reader . getAttributeCount ( ) ; for ( int i = 0 ; i < count ; i ++ ) { switch ( Namespace . forUri ( reader . getAttributeNamespace ( i ) ) ) { case NONE : { final String value = reader . getAttributeValue ( i ) ; final Attribute attribute = Attribute . forName ( reader . getAttributeLocalName ( i ) ) ; switch ( attribute ) { case NAME : { serverName = value ; break ; } default : throw unexpectedAttribute ( reader , i ) ; } break ; } case XML_SCHEMA_INSTANCE : { switch ( Attribute . forName ( reader . getAttributeLocalName ( i ) ) ) { case SCHEMA_LOCATION : { parseSchemaLocations ( reader , address , list , i ) ; break ; } case NO_NAMESPACE_SCHEMA_LOCATION : { // todo, jeez break ; } default : { throw unexpectedAttribute ( reader , i ) ; } } break ; } default : throw unexpectedAttribute ( reader , i ) ; } } setServerName ( address , list , serverName ) ; // elements - sequence Element element = nextElement ( reader , DOMAIN_1_0 ) ; if ( element == Element . EXTENSIONS ) { extensionXml . parseExtensions ( reader , address , DOMAIN_1_0 , list ) ; element = nextElement ( reader , DOMAIN_1_0 ) ; } // System properties if ( element == Element . SYSTEM_PROPERTIES ) { parseSystemProperties ( reader , address , DOMAIN_1_0 , list , true ) ; element = nextElement ( reader , DOMAIN_1_0 ) ; } if ( element == Element . PATHS ) { parsePaths ( reader , address , DOMAIN_1_0 , list , true ) ; element = nextElement ( reader , DOMAIN_1_0 ) ; } // Single profile if ( element == Element . PROFILE ) { parseServerProfile ( reader , address , list ) ; element = nextElement ( reader , DOMAIN_1_0 ) ; } // Interfaces final Set < String > interfaceNames = new HashSet < String > ( ) ; if ( element == Element . INTERFACES ) { parseInterfaces ( reader , interfaceNames , address , DOMAIN_1_0 , list , true ) ; element = nextElement ( reader , DOMAIN_1_0 ) ; } // Single socket binding group if ( element == Element . SOCKET_BINDING_GROUP ) { parseSocketBindingGroup ( reader , interfaceNames , address , DOMAIN_1_0 , list ) ; element = nextElement ( reader , DOMAIN_1_0 ) ; } if ( element != null ) { throw unexpectedElement ( reader ) ; } }
Read the <server/> element based on version 1.0 of the schema.

@param reader  the xml stream reader
@param address address of the parent resource of any resources this method will add
@param list the list of boot operations to which any new operations should be added
@throws XMLStreamException if a parsing error occurs
Read the <server / > element based on version 1 . 0 of the schema .