return applTo;
}
public static List<Object> parseAppliesTo(final AppliesTo appliesTo){
final List<Object> list = appliesTo.getAny();
EndpointReference epr = null;
List<Object> result = new ArrayList<Object>();
if (!list.isEmpty()){
for (Object obj : list) {
if (obj instanceof EndpointReference){
epr = (EndpointReference)obj;
} else if (obj instanceof JAXBElement){
final JAXBElement ele = (JAXBElement)obj;
final String local = ele.getName().getLocalPart();
if (local.equalsIgnoreCase("EndpointReference")) {
epr = (EndpointReference)ele.getValue();
}
}
if (epr != null){
final AttributedURI uri = epr.getAddress();
if (uri != null){
result.add(uri.getValue());
}
for (Object obj2 : epr.getAny()) {
try {
Element ele = WSTrustElementFactory.newInstance().toElement(obj2);
if (ele != null){
NodeList nodeList = ele.getElementsByTagNameNS("*", "Identity");
if (nodeList.getLength() > 0){