legacy/jacorb/src/main/java/org/jboss/as/jacorb/JacORBSubsystemParser.java
private void parseGenericProperty_1_0(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException {
        String name = null;
        String val = null;
        EnumSet<Attribute> required = EnumSet.of(Attribute.PROP_KEY, 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 PROP_KEY: {
                    name = value;
                    break;
                }
                case PROP_VALUE: {
                    val = value;
                    break;
                }
                default:
                    throw unexpectedAttribute(reader, i);
            }
        }

        if (!required.isEmpty()) {
            throw missingRequired(reader, required);
        }
        node.get(name).set(val);
        requireNoContent(reader);
    }
private void parseGenericProperty_1_0(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException {
        String name = null;
        String val = null;
        EnumSet<Attribute> required = EnumSet.of(Attribute.PROP_KEY, 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 PROP_KEY: {
                    name = value;
                    break;
                }
                case PROP_VALUE: {
                    val = value;
                    break;
                }
                default:
                    throw unexpectedAttribute(reader, i);
            }
        }

        if (!required.isEmpty()) {
            throw missingRequired(reader, required);
        }
        node.get(name).set(val);
        requireNoContent(reader);
    }
private void parseGenericProperty_1_0 ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { String name = null ; String val = null ; EnumSet < Attribute > required = EnumSet . of ( Attribute . PROP_KEY , 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 PROP_KEY : { name = value ; break ; } case PROP_VALUE : { val = value ; 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.0 and adds the key/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 . 0 and adds the key / value pair to the specified { @code ModelNode } . < / p >