public static boolean getWarningCookie(final RequestContext context) {
        val val = ObjectUtils.defaultIfNull(context.getFlowScope().get("warnCookieValue"), Boolean.FALSE.toString()).toString();
        return Boolean.parseBoolean(val);
    }
public static boolean getWarningCookie ( final RequestContext context ) { val val = ObjectUtils . defaultIfNull ( context . getFlowScope ( ) . get ( "warnCookieValue" ) , Boolean . FALSE . toString ( ) ) . toString ( ) ; return Boolean . parseBoolean ( val ) ; }
Gets warning cookie.

@param context the context
@return warning cookie value, if present.