final RequestContext requestCtx = util.createXACMLRequest(ejbResource.getEjbName(), ejbResource.getEjbMethod(),
ejbResource.getPrincipal(), role);
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(toString(requestCtx));
}
final ResponseContext response = pdp.evaluate(requestCtx);
result = response.getDecision() == XACMLConstants.DECISION_PERMIT ? AuthorizationContext.PERMIT
: AuthorizationContext.DENY;
} catch (Exception e) {
LOGGER.error("Exception in processing:", e);
result = AuthorizationContext.DENY;
}