protected void buildResponseModelForTokenExchange(final OAuth20AccessTokenResponseResult result, final Map<String, Object> model) {
        if (result.getRequestedTokenType() == OAuth20TokenExchangeTypes.ID_TOKEN) {
            val accessToken = result.getGeneratedToken().getAccessToken();
            accessToken.map(at -> resolveToken(at, OAuth20AccessToken.class)).ifPresent(at -> collectIdToken(result, at, model));
        }
        model.put(OAuth20Constants.ISSUED_TOKEN_TYPE, result.getRequestedTokenType().getType());
    }
This is {@link OidcAccessTokenResponseGenerator}.

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