EntitlementEngine entitlementEngine = EntitlementEngine
.getInstance(getGovernanceUserRegistry(), CarbonContext.getCurrentContext().getTenantId());
policyRequestBuilder = new PolicyRequestBuilder();
policyResponseBuilder = new PolicyResponseBuilder();
xacmlReq = policyRequestBuilder.getXacmlRequest(request);
RequestCtx req = RequestCtx.getInstance(xacmlReq);
List<PIPExtension> extensions = EntitlementServiceComponent.getPipConfig()
.getExtensions();
for (Iterator iterator = extensions.iterator(); iterator.hasNext();) {
PIPExtension pipExtension = (PIPExtension) iterator.next();
pipExtension.update(req);