QName qn = new QName(nd.getNamespaceURI(), nd.getLocalName());
if (constants.getPolicyElemQName().equals(qn)
&& null == policyElem) {
policyElem = (Element)nd;
} else {
throw new PolicyException(new Message("UNEXPECTED_CHILD_ELEMENT_EXC", BUNDLE,
constants.getPolicyElemQName()));
}
}
}
if (null == policyElem) {
throw new PolicyException(new Message("UNEXPECTED_CHILD_ELEMENT_EXC", BUNDLE,
constants.getPolicyElemQName()));
}
nested = builder.getPolicy(policyElem);
}