Set<EvaluableCriteria<Credential>> evaluable = new HashSet<EvaluableCriteria<Credential>>(criteriaSet.size());
for (Criteria criteria : criteriaSet) {
if (criteria instanceof EvaluableCredentialCriteria) {
evaluable.add((EvaluableCredentialCriteria) criteria);
} else {
EvaluableCredentialCriteria evaluableCriteria =
EvaluableCredentialCriteriaRegistry.getEvaluator(criteria);
if (evaluableCriteria != null) {
evaluable.add(evaluableCriteria);
}
}