private static Set<String> transformAttributes(final List<String> attributes) {
            val attributeSet = new LinkedHashSet<String>(attributes.size());
            CoreAuthenticationUtils.transformPrincipalAttributesListIntoMultiMap(attributes).values().forEach(v -> attributeSet.add(v.toString()));
            return attributeSet;
        }
This is {@link CasDiscoveryProfileAutoConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-discovery-profile/src/main/java/org/apereo/cas/config/CasDiscoveryProfileAutoConfiguration.java