private List filterAttributes(final List<Object> valuesToFilter, final String attributeName) {
        return valuesToFilter
            .stream()
            .filter(this::patternMatchesAttributeValue)
            .peek(attributeValue -> logReleasedAttributeEntry(attributeName, attributeValue))
            .collect(Collectors.toList());
    }
Filter array attributes.

@param valuesToFilter the values to filter
@param attributeName  the attribute name
@return the string[]
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/support/RegisteredServiceRegexAttributeFilter.java