code: public String getHtmlCookieString(String name, String value) {
          return getHtmlCookieString(name, value, null);
      }
docs: Creates and returns a JavaScript line for setting a cookie with the specified name and value. Note: The name and value will
  be HTML-encoded.