Set<XACMLPolicy> policies = (Set<XACMLPolicy>)policyRegistration.getPolicy(contextID,
PolicyRegistration.XACML, null);
if(policies == null)
throw new IllegalStateException("Missing xacml policy for contextid:" + contextID);
JBossPolicyLocator jpl = new JBossPolicyLocator(policies);
JBossPolicySetLocator jpsl = new JBossPolicySetLocator(policies);
HashSet<PolicyLocator> plset = new HashSet<PolicyLocator>();
plset.add(jpl);
plset.add(jpsl);
pdp = new JBossPDP();