private boolean isClaimDefinitionSupportedForRelease(final String claimName) {
        val oidc = getConfigurationContext().getCasProperties().getAuthn().getOidc();
        val claims = oidc.getDiscovery().getClaims();
        val definitionName = getConfigurationContext().getAttributeDefinitionStore()
            .locateAttributeDefinitionByName(claimName)
            .filter(OidcAttributeDefinition.class::isInstance)
            .map(AttributeDefinition::getKey)
            .orElse(claimName);
        LOGGER.trace("Checking if attribute definition [{}] is specified in the list of discovery claims [{}]", definitionName, claims);
        return claims.contains(definitionName);
    }
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