WebXACMLUtil util = new WebXACMLUtil();
try
{
RequestCtx requestCtx = util.createXACMLRequest(request,am, am.getUserRoles(userP));
String contextID = PolicyContext.getContextID();
Policy policy = (Policy)policyRegistration.getPolicy(contextID,null);
if(policy == null)
throw new IllegalStateException("Missing xacml policy for contextid:"+contextID);
result = JBossXACMLUtil.checkXACMLAuthorization(requestCtx,policy);
}
catch(Exception e)