docs: @Override
      public Cookie toCookie() {
          Cookie cookie = new Cookie(name, value);
          cookie.setComment(comment);
          if (domain != null) {
              cookie.setDomain(domain);
          }
          cookie.setMaxAge(getMaxAge());
          cookie.setPath(path);
          cookie.setSecure(secure);
          cookie.setVersion(version);
          return cookie;
      }