}
ArrayList policies = new ArrayList();
// wsdl:port
Assertion epPolicy = getPolicyFromComponent(endpoint);
if (epPolicy != null) {
policies.add(getPolicyFromComponent(endpoint));
}
//wsdl:binding
WSDLBinding wsdlBinding = endpoint.getBinding();
Assertion wsdlBindingPolicy = getPolicyFromComponent(wsdlBinding);
if (wsdlBindingPolicy != null) {
policies.add(getPolicyFromComponent(wsdlBinding));
}
//wsdl:portType
WSDLInterface wsdlInterface = wsdlBinding.getBoundInterface();
Assertion portTypePolicy = getPolicyFromComponent(wsdlInterface);
if (portTypePolicy != null) {
policies.add(getPolicyFromComponent(wsdlInterface));
}
return getSinglePolicy(policies);