protected List<Object> filterAttributeValuesByPattern(final Set<Object> attributeValues, final Pattern pattern) {
        return attributeValues.stream().filter(v -> RegexUtils.matches(pattern, v.toString(), completeMatch)).collect(Collectors.toList());
    }
Filter attribute values by pattern and return the list.

@param attributeValues the attribute values
@param pattern         the pattern
@return the list
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/support/RegisteredServiceMappedRegexAttributeFilter.java