@Override
    public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> operations) throws XMLStreamException {

        PathAddress address = PathAddress.pathAddress(SUBSYSTEM_PATH);
        final ModelNode ejb3SubsystemAddOperation = Util.createAddOperation(address);
        operations.add(ejb3SubsystemAddOperation);

        // elements
        final EnumSet<NamingSubsystemXMLElement> encountered = EnumSet.noneOf(NamingSubsystemXMLElement.class);
        while (reader.hasNext() && reader.nextTag() != XMLStreamConstants.END_ELEMENT) {
            if (validNamespace == NamingSubsystemNamespace.forUri(reader.getNamespaceURI())) {
                final NamingSubsystemXMLElement element = NamingSubsystemXMLElement.forName(reader.getLocalName());
                if (!encountered.add(element)) {
                    throw unexpectedElement(reader);
                }
                switch (element) {
                    case BINDINGS: {
                        parseBindings(reader, operations, address);
                        break;
                    }
                    case REMOTE_NAMING: {
                        parseRemoteNaming(reader, operations, address);
                        break;
                    }
                    default: {
                        throw unexpectedElement(reader);
                    }
                }
            }
            else {
                throw unexpectedElement(reader);
            }
        }
    }
@Override
    public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> operations) throws XMLStreamException {

        PathAddress address = PathAddress.pathAddress(SUBSYSTEM_PATH);
        final ModelNode ejb3SubsystemAddOperation = Util.createAddOperation(address);
        operations.add(ejb3SubsystemAddOperation);

        
        final EnumSet<NamingSubsystemXMLElement> encountered = EnumSet.noneOf(NamingSubsystemXMLElement.class);
        while (reader.hasNext() && reader.nextTag() != XMLStreamConstants.END_ELEMENT) {
            if (validNamespace == NamingSubsystemNamespace.forUri(reader.getNamespaceURI())) {
                final NamingSubsystemXMLElement element = NamingSubsystemXMLElement.forName(reader.getLocalName());
                if (!encountered.add(element)) {
                    throw unexpectedElement(reader);
                }
                switch (element) {
                    case BINDINGS: {
                        parseBindings(reader, operations, address);
                        break;
                    }
                    case REMOTE_NAMING: {
                        parseRemoteNaming(reader, operations, address);
                        break;
                    }
                    default: {
                        throw unexpectedElement(reader);
                    }
                }
            }
            else {
                throw unexpectedElement(reader);
            }
        }
    }
@ Override public void readElement ( final XMLExtendedStreamReader reader , final List < ModelNode > operations ) throws XMLStreamException { PathAddress address = PathAddress . pathAddress ( SUBSYSTEM_PATH ) ; final ModelNode ejb3SubsystemAddOperation = Util . createAddOperation ( address ) ; operations . add ( ejb3SubsystemAddOperation ) ; // elements final EnumSet < NamingSubsystemXMLElement > encountered = EnumSet . noneOf ( NamingSubsystemXMLElement . class ) ; while ( reader . hasNext ( ) && reader . nextTag ( ) != XMLStreamConstants . END_ELEMENT ) { if ( validNamespace == NamingSubsystemNamespace . forUri ( reader . getNamespaceURI ( ) ) ) { final NamingSubsystemXMLElement element = NamingSubsystemXMLElement . forName ( reader . getLocalName ( ) ) ; if ( ! encountered . add ( element ) ) { throw unexpectedElement ( reader ) ; } switch ( element ) { case BINDINGS : { parseBindings ( reader , operations , address ) ; break ; } case REMOTE_NAMING : { parseRemoteNaming ( reader , operations , address ) ; break ; } default : { throw unexpectedElement ( reader ) ; } } } else { throw unexpectedElement ( reader ) ; } } }
{@inheritDoc}
{