// parse the poa config elements.
EnumSet<JacORBElement> foundElements = EnumSet.noneOf(JacORBElement.class);
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
switch (JacORBNamespace.forUri(reader.getNamespaceURI())) {
case JacORB_1_0: {
final JacORBElement element = JacORBElement.forName(reader.getLocalName());
// check for duplicate elements.
if (!foundElements.add(element)) {
throw duplicateNamedElement(reader, element.getLocalName());
}
switch (element) {
case POA_REQUEST_PROC_CONFIG: {
// create a model node to hold the poa request-processors config attributes.
ModelNode subNode = poaConfig.get(POA_REQUEST_PROC_CONFIG.getLocalName());