private void parseObjectFactoryBindingEnvironment(XMLExtendedStreamReader reader, ModelNode bindingAdd) throws XMLStreamException {
    """
	<p>
	Parses the optional {@code ObjectFactory environment}.
	</p>
	
	@param reader     the {@code XMLExtendedStreamReader} used to read the configuration XML.
	@param bindingAdd where to add
	@throws javax.xml.stream.XMLStreamException
	if an error occurs while parsing the XML.
    """
        // no attributes expected
        requireNoAttributes(reader);
        while (reader.hasNext() && reader.nextTag() != XMLStreamConstants.END_ELEMENT) {
            switch (NamingSubsystemXMLElement.forName(reader.getLocalName())) {
                case ENVIRONMENT_PROPERTY: {
                    final String[] array = requireAttributes(reader, org.jboss.as.controller.parsing.Attribute.NAME.getLocalName(), org.jboss.as.controller.parsing.Attribute.VALUE.getLocalName());
                    NamingBindingResourceDefinition.ENVIRONMENT.parseAndAddParameterElement(array[0], array[1], bindingAdd, reader);
                    requireNoContent(reader);
                    break;
                }
                default: {
                    throw unexpectedElement(reader);
                }
            }
        }
    }
private void parseObjectFactoryBindingEnvironment(XMLExtendedStreamReader reader, ModelNode bindingAdd) throws XMLStreamException {
        // no attributes expected
        requireNoAttributes(reader);
        while (reader.hasNext() && reader.nextTag() != XMLStreamConstants.END_ELEMENT) {
            switch (NamingSubsystemXMLElement.forName(reader.getLocalName())) {
                case ENVIRONMENT_PROPERTY: {
                    final String[] array = requireAttributes(reader, org.jboss.as.controller.parsing.Attribute.NAME.getLocalName(), org.jboss.as.controller.parsing.Attribute.VALUE.getLocalName());
                    NamingBindingResourceDefinition.ENVIRONMENT.parseAndAddParameterElement(array[0], array[1], bindingAdd, reader);
                    requireNoContent(reader);
                    break;
                }
                default: {
                    throw unexpectedElement(reader);
                }
            }
        }
    }
private void parseObjectFactoryBindingEnvironment ( XMLExtendedStreamReader reader , ModelNode bindingAdd ) throws XMLStreamException { // no attributes expected requireNoAttributes ( reader ) ; while ( reader . hasNext ( ) && reader . nextTag ( ) != XMLStreamConstants . END_ELEMENT ) { switch ( NamingSubsystemXMLElement . forName ( reader . getLocalName ( ) ) ) { case ENVIRONMENT_PROPERTY : { final String [ ] array = requireAttributes ( reader , org . jboss . as . controller . parsing . Attribute . NAME . getLocalName ( ) , org . jboss . as . controller . parsing . Attribute . VALUE . getLocalName ( ) ) ; NamingBindingResourceDefinition . ENVIRONMENT . parseAndAddParameterElement ( array [ 0 ] , array [ 1 ] , bindingAdd , reader ) ; requireNoContent ( reader ) ; break ; } default : { throw unexpectedElement ( reader ) ; } } } }
<p>
Parses the optional {@code ObjectFactory environment}.
</p>

@param reader     the {@code XMLExtendedStreamReader} used to read the configuration XML.
@param bindingAdd where to add
@throws javax.xml.stream.XMLStreamException
if an error occurs while parsing the XML.
<p > Parses the optional { @code ObjectFactory environment } . < / p >