public static CookieGenerationContext buildCookieGenerationContext(final CookieProperties cookie) {
        return buildCookieGenerationContextBuilder(cookie).build();
    }
Build cookie generation context.

@param cookie the cookie
@return the cookie generation context
core/cas-server-core-cookie-api/src/main/java/org/apereo/cas/web/support/CookieUtils.java