protected Optional<String> getMappedClaim(final String claim,
                                              final RegisteredServiceAttributeReleasePolicyContext context) {
        val mapper = context.getApplicationContext().getBean(OidcAttributeToScopeClaimMapper.DEFAULT_BEAN_NAME,
            OidcAttributeToScopeClaimMapper.class);
        LOGGER.debug("Attempting to process claim [{}]", claim);
        return mapper.containsMappedAttribute(claim, context.getRegisteredService())
            ? Optional.of(mapper.getMappedAttribute(claim, context.getRegisteredService()))
            : Optional.empty();
    }
This is {@link BaseOidcScopeAttributeReleasePolicy}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-oidc-core/src/main/java/org/apereo/cas/oidc/claims/BaseOidcScopeAttributeReleasePolicy.java