final PoliciesType policies = new PoliciesType();
final PolicySetType policySet = new PolicySetType();
policySet.setLocation(policyDir.toURI().getPath());
policies.getPolicySet().add(policySet);
pdp.setPolicies(policies);
final LocatorType locator = new LocatorType();
locator.setName(JBossPolicySetLocator.class.getName());
final LocatorsType locators = new LocatorsType();
locators.getLocator().add(locator);
pdp.setLocators(locators);
return new JBossPDP(new JAXBElement<PDP>(new QName("urn:jboss:xacml:2.0", "jbosspdp"), PDP.class, pdp));