protected String determineTicketGrantingTicketId(final RequestContext context) {
        val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(context);
        val ticketGrantingTicketId = configurationContext.getTicketGrantingTicketCookieGenerator().retrieveCookieValue(request);
        if (StringUtils.isBlank(ticketGrantingTicketId)) {
            return WebUtils.getTicketGrantingTicketId(context);
        }
        return ticketGrantingTicketId;
    }
Action that handles the {@link TicketGrantingTicket} creation and destruction. If the
action is given a {@link TicketGrantingTicket} and one also already exists, the old
one is destroyed and replaced with the new one conditionally.

@author Scott Battaglia
@since 3.0.0
support/cas-server-support-actions-core/src/main/java/org/apereo/cas/web/flow/login/CreateTicketGrantingTicketAction.java