code: private HttpCookie convertCookie(Cookie cookie) {
          HttpCookie rc = new HttpCookie(cookie.getName(), cookie.getValue());
          rc.setVersion(cookie.getVersion());
          rc.setComment(cookie.getComment());
          rc.setDomain(cookie.getDomain());
          rc.setPath(cookie.getPath());
          rc.setMaxAge(cookie.getMaxAge());
          rc.setSecure(cookie.getSecure());
          return rc;
      }
docs: Convert from a J2EE spec cookie to the HTTP transport (non-servlet) cookie
  object.
  
  @param cookie
  @return HttpCookie