attributeModules.add(new SelectorModule());
attributeFinder.setModules(attributeModules);
org.jboss.security.xacml.sunxacml.PDP pdp =
new org.jboss.security.xacml.sunxacml.PDP(new PDPConfig(attributeFinder, policyFinder, null));
RequestCtx req = (RequestCtx) request.get(XACMLConstants.REQUEST_CTX);
if (req == null)
throw new IllegalStateException("Request Context does not contain a request");
ResponseCtx resp = pdp.evaluate(req);