for (Iterator policyElements = attachmentElement
.getChildrenWithName(new QName(
DeploymentConstants.POLICY_NS_URI,
DeploymentConstants.TAG_POLICY)); policyElements
.hasNext();) {
PolicyComponent policy = PolicyUtil
.getPolicyFromOMElement((OMElement)policyElements
.next());
policyComponents.add(policy);
}
// process <wsp:PolicyReference> elements ..
for (Iterator policyRefElements = attachmentElement
.getChildrenWithName(new QName(
DeploymentConstants.POLICY_NS_URI,
DeploymentConstants.TAG_POLICY_REF)); policyRefElements
.hasNext();) {
PolicyComponent policyRef = PolicyUtil
.getPolicyReferenceFromOMElement((OMElement)policyRefElements
.next());
policyComponents.add(policyRef);
}