protected Map<String, Serializable> buildTicketProperties(final WebContext webContext) {
        val properties = new HashMap<String, Serializable>();
        val themeParamName = configContext.getCasProperties().getTheme().getParamName();
        val localParamName = configContext.getCasProperties().getLocale().getParamName();
        webContext.getRequestParameter(themeParamName).ifPresent(value -> properties.put(themeParamName, value));
        webContext.getRequestParameter(localParamName).ifPresent(value -> properties.put(localParamName, value));
        webContext.getRequestParameter(CasProtocolConstants.PARAMETER_METHOD)
            .ifPresent(value -> properties.put(CasProtocolConstants.PARAMETER_METHOD, value));
        LOGGER.debug("Built ticket properties [{}]", properties);
        return properties;
    }
Build the ticket properties.

@param webContext the web context
@return the ticket properties
support/cas-server-support-pac4j-core/src/main/java/org/apereo/cas/web/flow/DefaultDelegatedClientAuthenticationWebflowStateContributor.java