legacy/jacorb/src/main/java/org/jboss/as/jacorb/JacORBSubsystemParser.java
private void parseGenericProperty(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException {
        String name = null;
        ModelNode val = null;
        EnumSet<Attribute> required = EnumSet.of(Attribute.NAME, Attribute.PROP_VALUE);
        final int count = reader.getAttributeCount();
        for (int i = 0; i < count; i++) {
            requireNoNamespaceAttribute(reader, i);
            final String value = reader.getAttributeValue(i);
            final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
            required.remove(attribute);
            switch (attribute) {
                case NAME: {
                    name = value;
                    break;
                }
                case PROP_VALUE: {
                    val = JacORBSubsystemDefinitions.PROPERTIES.parse(value, reader.getLocation());
                    break;
                }
                default:
                    throw unexpectedAttribute(reader, i);
            }
        }

        if (!required.isEmpty()) {
            throw missingRequired(reader, required);
        }
        node.get(name).set(val);
        requireNoContent(reader);
    }
private void parseGenericProperty(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException {
        String name = null;
        ModelNode val = null;
        EnumSet<Attribute> required = EnumSet.of(Attribute.NAME, Attribute.PROP_VALUE);
        final int count = reader.getAttributeCount();
        for (int i = 0; i < count; i++) {
            requireNoNamespaceAttribute(reader, i);
            final String value = reader.getAttributeValue(i);
            final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
            required.remove(attribute);
            switch (attribute) {
                case NAME: {
                    name = value;
                    break;
                }
                case PROP_VALUE: {
                    val = JacORBSubsystemDefinitions.PROPERTIES.parse(value, reader.getLocation());
                    break;
                }
                default:
                    throw unexpectedAttribute(reader, i);
            }
        }

        if (!required.isEmpty()) {
            throw missingRequired(reader, required);
        }
        node.get(name).set(val);
        requireNoContent(reader);
    }
private void parseGenericProperty ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { String name = null ; ModelNode val = null ; EnumSet < Attribute > required = EnumSet . of ( Attribute . NAME , Attribute . PROP_VALUE ) ; final int count = reader . getAttributeCount ( ) ; for ( int i = 0 ; i < count ; i ++ ) { requireNoNamespaceAttribute ( reader , i ) ; final String value = reader . getAttributeValue ( i ) ; final Attribute attribute = Attribute . forName ( reader . getAttributeLocalName ( i ) ) ; required . remove ( attribute ) ; switch ( attribute ) { case NAME : { name = value ; break ; } case PROP_VALUE : { val = JacORBSubsystemDefinitions . PROPERTIES . parse ( value , reader . getLocation ( ) ) ; break ; } default : throw unexpectedAttribute ( reader , i ) ; } } if ( ! required . isEmpty ( ) ) { throw missingRequired ( reader , required ) ; } node . get ( name ) . set ( val ) ; requireNoContent ( reader ) ; }
<p>
Parses a {@code property} element according to the XSD version 1.1 or higher and adds the name/value pair to the
specified {@code ModelNode}.
</p>

@param reader the {@code XMLExtendedStreamReader} used to read the configuration XML.
@param node   the {@code ModelNode} that contains all parsed ORB properties.
@throws javax.xml.stream.XMLStreamException
if an error occurs while parsing the XML.
<p > Parses a { @code property } element according to the XSD version 1 . 1 or higher and adds the name / value pair to the specified { @code ModelNode } . < / p >