List<Policy> policies = new ArrayList<Policy>();
try {
List<InterfaceDefinitionPart> parts = wsdlContext.getDefinitionCache().getDefinitionParts();
for (int i = 0; i < parts.size(); i++) {
InterfaceDefinitionPart part = parts.get(i);
String content = part.getContent();
// XmlObject xml = XmlObject.Factory.parse( content );
XmlObject xml = XmlUtils.createXmlObject(content);
// include paths for both namespaces
XmlObject[] paths = xml.selectPath("declare namespace wsp='" + WS_W3_POLICY_NAMESPACE + "';"
+ "//wsp:Policy");