public void handleMessage(Message message) throws Fault {
EndpointInfo ei = message.getExchange().get(Endpoint.class).getEndpointInfo();
BindingOperationInfo boi = message.getExchange().get(BindingOperationInfo.class);
LOG.fine("Getting effective server request policy for endpoint " + ei
+ " and binding operation " + boi);
EffectivePolicy ep =
bus.getExtension(PolicyEngine.class).getEffectiveServerRequestPolicy(ei, boi);
for (Iterator it = ep.getPolicy().getAlternatives(); it.hasNext();) {
Collection<PolicyAssertion> as =
CastUtils.cast((Collection)it.next(), PolicyAssertion.class);
LOG.fine("Checking alternative with " + as.size() + " assertions.");
for (PolicyAssertion a : as) {
LOG.fine("Assertion: " + a.getClass().getName());