default Set<OidcCustomScopeAttributeReleasePolicy> from(final Map<String, String> userDefinedScopes) {
        return userDefinedScopes
            .entrySet()
            .stream()
            .map(scope -> custom(scope.getKey(), scope.getValue()))
            .collect(Collectors.toSet());
    }
From map of user-defined scopes.

@param userDefinedScopes the user defined scopes
@return the collection
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/scopes/OidcAttributeReleasePolicyFactory.java