@Override
    protected Map<String, List<Object>> collectAttributes(final Principal principal,
                                                          final RegisteredService registeredService) {
        val attributes = new HashMap<String, List<Object>>();
        val mapper = getConfigurationContext().getObject().getAttributeToScopeClaimMapper();
        super.collectAttributes(principal, registeredService)
            .forEach((key, value) -> {
                val collectionValues = mapper.mapClaim(key, registeredService, principal, value);
                attributes.put(key, collectionValues);
            });
        return attributes;
    }
This is {@link OidcUserProfileDataCreator}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/profile/OidcUserProfileDataCreator.java