@Override
    protected void doInitialize() {
        val storageType = casProperties.getTicket().getRegistry().getStateless().getStorageType();
        val setStorageTypeAction = createSetAction(
            "requestScope.%s".formatted(BrowserStorage.BrowserStorageTypes.class.getSimpleName()),
            "'%s'".formatted(storageType));

        val loginFlow = getLoginFlow();
        prependActionsToActionStateExecutionList(loginFlow,
            CasWebflowConstants.STATE_ID_INITIAL_AUTHN_REQUEST_VALIDATION_CHECK,
            ConsumerExecutionAction.wrap(setStorageTypeAction),
            CasWebflowConstants.ACTION_ID_READ_BROWSER_STORAGE);

        val writeStorage = getState(loginFlow, CasWebflowConstants.STATE_ID_BROWSER_STORAGE_WRITE, ViewState.class);
        prependActionsToActionStateExecutionList(loginFlow, writeStorage, setStorageTypeAction);

        val flow = getFlow(CasWebflowConfigurer.FLOW_ID_ACCOUNT);
        prependActionsToActionStateExecutionList(flow,
            CasWebflowConstants.STATE_ID_TICKET_GRANTING_TICKET_CHECK,
            ConsumerExecutionAction.wrap(setStorageTypeAction),
            CasWebflowConstants.ACTION_ID_READ_BROWSER_STORAGE);
    }
This is {@link StatelessTicketRegistryWebflowConfigurer}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-stateless-ticket-registry/src/main/java/org/apereo/cas/web/flow/StatelessTicketRegistryWebflowConfigurer.java