legacy/jacorb/src/main/java/org/jboss/as/jacorb/JacORBSubsystemParser.java
private void readElement_1_0(Namespace namespace, XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException {

        final EnumSet<Element> encountered = EnumSet.noneOf(Element.class);
        while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
            // check the element namespace.
            if (Namespace.JacORB_1_0 != Namespace.forUri(reader.getNamespaceURI()))
                throw unexpectedElement(reader);

            final Element element = Element.forName(reader.getLocalName());
            // there can be multiple property elements.
            if (!encountered.add(element) && element != Element.PROPERTY) {
                throw duplicateNamedElement(reader, element.getLocalName());
            }
            switch (element) {
                case ORB: {
                    this.parseORBConfig_1_0(reader, node);
                    break;
                }
                case POA: {
                    this.parsePOAConfig(namespace, reader, node);
                    break;
                }
                case INTEROP: {
                    this.parseInteropConfig(reader, node);
                    break;
                }
                case SECURITY: {
                    this.parseSecurityConfig_1_0(reader, node);
                    break;
                }
                case PROPERTY: {
                    ModelNode propertiesNode = node.get(JacORBSubsystemConstants.PROPERTIES);
                    this.parseGenericProperty_1_0(reader, propertiesNode);
                    break;
                }
                case ORB_INITIALIZERS: {
                    this.parseORBInitializersConfig_1_0(reader, node);
                    break;
                }
                default: {
                    throw unexpectedElement(reader);
                }
            }
        }
    }
private void readElement_1_0(Namespace namespace, XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException {

        final EnumSet<Element> encountered = EnumSet.noneOf(Element.class);
        while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
            // check the element namespace.
            if (Namespace.JacORB_1_0 != Namespace.forUri(reader.getNamespaceURI()))
                throw unexpectedElement(reader);

            final Element element = Element.forName(reader.getLocalName());
            // there can be multiple property elements.
            if (!encountered.add(element) && element != Element.PROPERTY) {
                throw duplicateNamedElement(reader, element.getLocalName());
            }
            switch (element) {
                case ORB: {
                    this.parseORBConfig_1_0(reader, node);
                    break;
                }
                case POA: {
                    this.parsePOAConfig(namespace, reader, node);
                    break;
                }
                case INTEROP: {
                    this.parseInteropConfig(reader, node);
                    break;
                }
                case SECURITY: {
                    this.parseSecurityConfig_1_0(reader, node);
                    break;
                }
                case PROPERTY: {
                    ModelNode propertiesNode = node.get(JacORBSubsystemConstants.PROPERTIES);
                    this.parseGenericProperty_1_0(reader, propertiesNode);
                    break;
                }
                case ORB_INITIALIZERS: {
                    this.parseORBInitializersConfig_1_0(reader, node);
                    break;
                }
                default: {
                    throw unexpectedElement(reader);
                }
            }
        }
    }
private void readElement_1_0 ( Namespace namespace , XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { final EnumSet < Element > encountered = EnumSet . noneOf ( Element . class ) ; while ( reader . hasNext ( ) && reader . nextTag ( ) != END_ELEMENT ) { // check the element namespace. if ( Namespace . JacORB_1_0 != Namespace . forUri ( reader . getNamespaceURI ( ) ) ) throw unexpectedElement ( reader ) ; final Element element = Element . forName ( reader . getLocalName ( ) ) ; // there can be multiple property elements. if ( ! encountered . add ( element ) && element != Element . PROPERTY ) { throw duplicateNamedElement ( reader , element . getLocalName ( ) ) ; } switch ( element ) { case ORB : { this . parseORBConfig_1_0 ( reader , node ) ; break ; } case POA : { this . parsePOAConfig ( namespace , reader , node ) ; break ; } case INTEROP : { this . parseInteropConfig ( reader , node ) ; break ; } case SECURITY : { this . parseSecurityConfig_1_0 ( reader , node ) ; break ; } case PROPERTY : { ModelNode propertiesNode = node . get ( JacORBSubsystemConstants . PROPERTIES ) ; this . parseGenericProperty_1_0 ( reader , propertiesNode ) ; break ; } case ORB_INITIALIZERS : { this . parseORBInitializersConfig_1_0 ( reader , node ) ; break ; } default : { throw unexpectedElement ( reader ) ; } } } }
<p>
Parses the JacORB subsystem configuration according to the XSD version 1.0.
</p>

@param namespace the expected {@code Namespace} of the parsed elements.
@param reader the {@code XMLExtendedStreamReader} used to read the configuration XML.
@param node   the {@code ModelNode} that will hold the parsed subsystem configuration.
@throws javax.xml.stream.XMLStreamException
if an error occurs while parsing the XML.
<p > Parses the JacORB subsystem configuration according to the XSD version 1 . 0 . < / p >