private void registerPoliciesAsAttribute(List elements) {
Iterator iterator = elements.iterator();
while (iterator.hasNext()) {
WSDLExtensibilityAttribute wsdlExtensibilityAttribute = (WSDLExtensibilityAttribute) iterator
.next();
QName qname = wsdlExtensibilityAttribute.getKey();
if (qname.getNamespaceURI().equals(
PolicyConstants.WS_POLICY_NAMESPACE_URI)
&& qname.getLocalPart().equals("PolicyURIs")) {
String value = wsdlExtensibilityAttribute.getValue().toString();
String[] policyURIs = value.split(" ");
for (int i = 0; i < policyURIs.length; i++) {
String policyURI = policyURIs[i].trim();
if (reg.lookup(policyURI) == null) {