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