code: private Cookie convertHttpCookie(HttpCookie cookie)
    {
      Cookie rc = new Cookie(cookie.getName(), cookie.getValue());
      rc.setVersion(cookie.getVersion());
      if (null != cookie.getPath())
      {
        rc.setPath(cookie.getPath());
      }
      if (null != cookie.getDomain())
      {
        rc.setDomain(cookie.getDomain());
      }
      rc.setMaxAge(cookie.getMaxAge());
      rc.setSecure(cookie.isSecure());
      return rc;
    }
docs: Convert the transport cookie to a J2EE cookie.
  
  @param cookie
  @return Cookie