log.debug("Executing PDP query...");
List<XACMLObject> resultList = new LinkedList<XACMLObject>();
PolicySetType rootPolicySet = ServicesUtils.makeRootPolicySet();
resultList.add(rootPolicySet);
List<PapContainer> papContainerList = PapContainer.getContainers(PapManager.getInstance()
.getAllPaps());
// Add references to the remote PAPs
for (PapContainer papContainer : papContainerList) {
if (!papContainer.getPap().isEnabled()) {
continue;
}
log.info("Adding PAP: " + papContainer.getPap().getAlias());
try {
PolicySetType papPolicySetNoReferences;
if (papContainer.getPap().isLocal()) {
synchronized (ServicesUtils.highLevelOperationLock) {
papPolicySetNoReferences = getPolicySetNoReferences(papContainer,
papContainer.getRootPolicySetId());