private Result evaluateContext(EvaluationCtx context) {
// first off, try to find a policy
PolicyFinderResult finderResult = policyFinder.findPolicy(context);
// see if there weren't any applicable policies
if (finderResult.notApplicable())
return new Result(Result.DECISION_NOT_APPLICABLE, context.getResourceId().encode());
// see if there were any errors in trying to get a policy
if (finderResult.indeterminate())
return new Result(Result.DECISION_INDETERMINATE, finderResult.getStatus(), context