Policy bindingOperationMessagePolicy = null;
Iterator operations = axisBinding.getChildren();
while (operations.hasNext()) {
AxisBindingOperation currentOperation = (AxisBindingOperation) operations.next();
if (currentOperation.getName().toString().equals(operationName)) {
PolicySubject bindingOperationMessagePolicySubject =
currentOperation.getChild(messageType).getPolicySubject();
List<PolicyComponent> policyList =
new ArrayList<PolicyComponent>(
bindingOperationMessagePolicySubject.getAttachedPolicyComponents());
bindingOperationMessagePolicy =
org.apache.axis2.util.PolicyUtil.getMergedPolicy(policyList, axisService);
break;
}
}