protected Map<String, List<Object>> getAttributesFromPolicy(final Principal principal,
                                                                final Service service,
                                                                final OidcRegisteredService registeredService,
                                                                final BaseOidcScopeAttributeReleasePolicy policy) {
        return FunctionUtils.doUnchecked(() -> {
            val releasePolicyContext = RegisteredServiceAttributeReleasePolicyContext.builder()
                .registeredService(registeredService)
                .service(service)
                .principal(principal)
                .applicationContext(applicationContext)
                .build();
            val policyAttr = policy.getAttributes(releasePolicyContext);
            LOGGER.debug("Calculated attributes [{}] via attribute release policy [{}]", policyAttr, policy.getName());
            return policyAttr;
        });
    }
This is {@link OidcProfileScopeToAttributesFilter}.

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