legacy/jacorb/src/main/java/org/jboss/as/jacorb/JacORBSubsystemParser.java
private void writePOAConfig(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException {

        boolean writePOA = this.isWritable(node, JacORBSubsystemDefinitions.POA_ATTRIBUTES);
        boolean writePOARP = this.isWritable(node, JacORBSubsystemDefinitions.POA_RP_ATTRIBUTES);

        // if no request processor properties are available, just write the poa properties (if any) in an empty element.
        if (!writePOARP) {
            if (writePOA) {
                writer.writeEmptyElement(JacORBSubsystemConstants.POA);
                this.writeAttributes(writer, node, JacORBSubsystemDefinitions.POA_ATTRIBUTES);
            }
        }
        // otherwise write the poa element with the appropriate sub-elements.
        else {
            writer.writeStartElement(JacORBSubsystemConstants.POA);
            this.writeAttributes(writer, node, JacORBSubsystemDefinitions.POA_ATTRIBUTES);
            writer.writeEmptyElement(JacORBSubsystemConstants.POA_RP);
            this.writeAttributes(writer, node, JacORBSubsystemDefinitions.POA_RP_ATTRIBUTES);
            writer.writeEndElement();
        }
    }
private void writePOAConfig(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException {

        boolean writePOA = this.isWritable(node, JacORBSubsystemDefinitions.POA_ATTRIBUTES);
        boolean writePOARP = this.isWritable(node, JacORBSubsystemDefinitions.POA_RP_ATTRIBUTES);

        // if no request processor properties are available, just write the poa properties (if any) in an empty element.
        if (!writePOARP) {
            if (writePOA) {
                writer.writeEmptyElement(JacORBSubsystemConstants.POA);
                this.writeAttributes(writer, node, JacORBSubsystemDefinitions.POA_ATTRIBUTES);
            }
        }
        // otherwise write the poa element with the appropriate sub-elements.
        else {
            writer.writeStartElement(JacORBSubsystemConstants.POA);
            this.writeAttributes(writer, node, JacORBSubsystemDefinitions.POA_ATTRIBUTES);
            writer.writeEmptyElement(JacORBSubsystemConstants.POA_RP);
            this.writeAttributes(writer, node, JacORBSubsystemDefinitions.POA_RP_ATTRIBUTES);
            writer.writeEndElement();
        }
    }
private void writePOAConfig ( XMLExtendedStreamWriter writer , ModelNode node ) throws XMLStreamException { boolean writePOA = this . isWritable ( node , JacORBSubsystemDefinitions . POA_ATTRIBUTES ) ; boolean writePOARP = this . isWritable ( node , JacORBSubsystemDefinitions . POA_RP_ATTRIBUTES ) ; // if no request processor properties are available, just write the poa properties (if any) in an empty element. if ( ! writePOARP ) { if ( writePOA ) { writer . writeEmptyElement ( JacORBSubsystemConstants . POA ) ; this . writeAttributes ( writer , node , JacORBSubsystemDefinitions . POA_ATTRIBUTES ) ; } } // otherwise write the poa element with the appropriate sub-elements. else { writer . writeStartElement ( JacORBSubsystemConstants . POA ) ; this . writeAttributes ( writer , node , JacORBSubsystemDefinitions . POA_ATTRIBUTES ) ; writer . writeEmptyElement ( JacORBSubsystemConstants . POA_RP ) ; this . writeAttributes ( writer , node , JacORBSubsystemDefinitions . POA_RP_ATTRIBUTES ) ; writer . writeEndElement ( ) ; } }
<p>
Writes the {@code poa} section of the JacORB subsystem configuration using the contents of the provided
{@code ModelNode}.
</p>

@param writer the {@code XMLExtendedStreamWriter} used to write the configuration XML.
@param node   the {@code ModelNode} that might contain POA configuration properties.
@throws XMLStreamException if an error occurs while writing the POA configuration.
<p > Writes the { @code poa } section of the JacORB subsystem configuration using the contents of the provided { @code ModelNode } . < / p >