protected void handleMappedClaimOrDefault(final String claimName,
                                              final RegisteredService registeredService,
                                              final Principal principal,
                                              final JwtClaims claims,
                                              final Object defaultValue) {
        val mapper = getConfigurationContext().getAttributeToScopeClaimMapper();
        val collectionValues = mapper.mapClaim(claimName, registeredService, principal, defaultValue);
        val collectors = getConfigurationContext().getIdTokenClaimCollectors();
        collectors.forEach(collector -> collector.collect(claims, claimName, collectionValues));
    }
This is {@link OidcIdTokenGeneratorService}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenGeneratorService.java