listOfXmlObjcts.addAll(Arrays.asList(paths1));
paths = (XmlObject[]) listOfXmlObjcts.toArray();
for (XmlObject obj : paths) {
String xx = obj.xmlText(new XmlOptions().setSaveOuter());
PolicyDocument policyDocument = PolicyDocument.Factory.parse(xx);
org.xmlsoap.schemas.ws.x2004.x09.policy.Policy polc = (org.xmlsoap.schemas.ws.x2004.x09.policy.Policy) policyDocument
.getPolicy();
policies.add(polc);
// List<Addressing> addressingList = polc.getAddressingList();
// Addressing a = null;
// if (addressingList.size() > 0 )