protected boolean verifyRequiredAttribute(final Map.Entry<String, Object> entry,
                                              final Map<String, List<Object>> attributes) {
        val currentValues = ObjectUtils.defaultIfNull(attributes.get(entry.getKey()), List.of());
        val requiredValues = CollectionUtils.toCollection(entry.getValue());
        val pattern = RegexUtils.concatenate(requiredValues, true);
        LOGGER.debug("Checking activation criteria [{}] against [{}] with pattern [{}] for attribute [{}]",
            requiredValues, currentValues, pattern, entry.getKey());
        return currentValues.stream().map(Object::toString).anyMatch(pattern.asPredicate());
    }
This is {@link AttributeBasedRegisteredServiceAttributeReleaseActivationCriteria}.

@author Misagh Moayyed
@since 7.1.0
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/AttributeBasedRegisteredServiceAttributeReleaseActivationCriteria.java