protected void updateAccessTokenUsage(final OAuth20AccessToken accessTokenTicket) throws Exception {
        if (!accessTokenTicket.isStateless()) {
            accessTokenTicket.update();
            val ticketRegistry = getConfigurationContext().getTicketRegistry();
            if (accessTokenTicket.isExpired()) {
                ticketRegistry.deleteTicket(accessTokenTicket.getId());
            } else {
                ticketRegistry.updateTicket(accessTokenTicket);
                FunctionUtils.doAndHandle(__ -> {
                    val tgt = ticketRegistry.getTicket(accessTokenTicket.getTicketGrantingTicket().getId(), TicketGrantingTicket.class);
                    ticketRegistry.updateTicket(tgt.update());
                });
            }
        }
    }
Handle request internal response entity.

@param request  the request
@param response the response
@return the response entity
@throws Exception the exception
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/endpoints/OAuth20UserProfileEndpointController.java