protected Ticket updateTicketGrantingTicket(final Authentication authentication, final String ticketGrantingTicketId) throws Exception {
        LOGGER.debug("Updating existing ticket-granting ticket [{}]...", ticketGrantingTicketId);
        val grantingTicket = ticketRegistrySupport.getTicketRegistry().getTicket(ticketGrantingTicketId, TicketGrantingTicket.class);
        updateAuthentication(grantingTicket, authentication);
        return ticketRegistrySupport.getTicketRegistry().updateTicket(grantingTicket);
    }
This is {@link DefaultSingleSignOnBuildingStrategy}.

@author Misagh Moayyed
@since 7.1.0
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/DefaultSingleSignOnBuildingStrategy.java