* com.sun.xacml.VersionConstraints, com.sun.xacml.PolicyMetaData)
*/
public PolicyFinderResult findPolicy(URI idReference, int type, VersionConstraints constraints,
PolicyMetaData parentMetaData) {
EntitlementPolicyCacheEntry cacheEntry = (EntitlementPolicyCacheEntry)
entitlementPolicyCache.getValueFromCache(cacheKey);
if(cacheEntry != null){
if(cacheEntry.getEntitlementPolicyCacheEntry() != hashOfPolicyCollection ){
init(new PolicyFinder());
}
} else {
cacheEntry = new EntitlementPolicyCacheEntry(hashOfPolicyCollection);
entitlementPolicyCache.addToCache(cacheKey, cacheEntry);
}
AbstractPolicy policy = policies.getPolicy(idReference.toString(), type, constraints);