docs: @Override
      public Cookie toCookie() {
          Cookie cookie = new Cookie(this.name, this.value);
          cookie.setComment(this.comment);
          if (this.domain != null) {
              // FYI: setDomain requires non-null argument (requirement not documented)
              cookie.setDomain(this.domain);
          }
  
          final int maxAge;
          if (this.expires == null) {
              maxAge = -1;
          } else {
              maxAge =
                      (int)
                              TimeUnit.MILLISECONDS.toSeconds(
                                      this.expires.getMillis() - System.currentTimeMillis());
          }
          cookie.setMaxAge(maxAge);
          cookie.setPath(this.path);
          cookie.setSecure(this.secure);
          cookie.setVersion(this.version);
          return cookie;
      }