MatchingResourcePredicate logic issue