// if a WS-RM policy is specified, use it
if (wsRMPolicyKey != null) {
Object property = synapseOutMessageContext.getEntry(wsRMPolicyKey);
if (property instanceof OMElement) {
OMElement policyOMElement = (OMElement) property;
RMAssertionBuilder builder = new RMAssertionBuilder();
SandeshaPolicyBean sandeshaPolicyBean = (SandeshaPolicyBean) builder.build(policyOMElement, null);
Parameter policyParam = new Parameter(Sandesha2Constants.SANDESHA_PROPERTY_BEAN, sandeshaPolicyBean);
anoymousService.addParameter(policyParam);
}
}
}