if (Boolean.TRUE.equals(map.get(ResourceKeys.ROLEREF_PERM_CHECK))) {
//Don't do this in the real world!
return AuthorizationContext.PERMIT;
}
final EJBXACMLUtil util = new EJBXACMLUtil();
try {
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);