public static EntityAttributesPredicate buildEntityAttributePredicate(final List<MetadataEntityAttributeQuery> candidates) {
        val attributes = candidates
            .stream()
            .map(entry -> {
                val attr = new EntityAttributesPredicate.Candidate(entry.getName(), entry.getFormat());
                attr.setValues(entry.getValues());
                return attr;
            })
            .toList();
        return new EntityAttributesPredicate(attributes, true);
    }
Build entity attributes predicate.

@param candidates the candidates
@return the entity attributes predicate
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/SamlIdPUtils.java