private boolean isClaimSupportedForRelease(final String claimName, final RegisteredService registeredService) {
        val mapper = getConfigurationContext().getAttributeToScopeClaimMapper();
        val mappedClaim = mapper.toMappedClaimName(claimName, registeredService);
        val oidc = getConfigurationContext().getCasProperties().getAuthn().getOidc();
        val claims = oidc.getDiscovery().getClaims();
        LOGGER.trace("Checking if any of [{}] are specified in the list of discovery claims [{}]", ImmutableSet.of(claimName, mappedClaim), claims);
        return claims.contains(claimName)
            || claims.contains(mappedClaim)
            || isClaimDefinitionSupportedForRelease(mappedClaim)
            || isClaimReleasedAllowedByScopeFreePolicy(claimName, registeredService);
    }
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