code: @InterfaceAudience.Public
      public void setCookie(String name, String value, String path,
                            Date expirationDate, boolean secure, boolean httpOnly) {
          // note: cookie is stored in the database. not necessary to be stored in the properties.
          replicationInternal.setCookie(name, value, path, expirationDate, secure, httpOnly);
      }
docs: Sets an HTTP cookie for the Replication.
  
  @param name           The name of the cookie.
  @param value          The value of the cookie.
  @param path           The path attribute of the cookie.  If null or empty, will use remote.getPath()
  @param expirationDate The expiration date of the cookie.
  @param secure         Whether the cookie should only be sent using a secure protocol (e.g. HTTPS).
  @param httpOnly       (ignored) Whether the cookie should only be used when transmitting HTTP,
  or HTTPS, requests thus restricting access from other, non-HTTP APIs.