protected ModelAndView generateResponseForAccessToken(final OAuth20AccessTokenResponseResult result) {
        val model = getAccessTokenResponseModel(result);
        val modelAndView = new ModelAndView(new MappingJackson2JsonView(MAPPER), model);
        modelAndView.setStatus(HttpStatus.OK);
        return modelAndView;
    }
This is {@link OAuth20DefaultAccessTokenResponseGenerator}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/response/OAuth20DefaultAccessTokenResponseGenerator.java