private Set<Cookie> convertHttpToJavaCookies(Set<io.netty.handler.codec.http.cookie.Cookie> httpCookies) {
    Set<javax.servlet.http.Cookie> cookies = new HashSet<Cookie>();
    for (io.netty.handler.codec.http.cookie.Cookie cookie : httpCookies) {
      try {
        javax.servlet.http.Cookie javaCookie = new javax.servlet.http.Cookie(cookie.name(), cookie.value());
        cookies.add(javaCookie);
      } catch (IllegalArgumentException e) {
        logger.debug("Could not create cookie with name [{}]", cookie.name(), e);
      }
    }
    return cookies;
  }
Converts the Set of {@link io.netty.handler.codec.http.cookie.Cookie}s to equivalent
{@link javax.servlet.http.Cookie}s
@param httpCookies Set of {@link io.netty.handler.codec.http.cookie.Cookie}s that needs to be converted
@return Set of {@link javax.servlet.http.Cookie}s equivalent to the passed in
{@link io.netty.handler.codec.http.cookie.Cookie}s
ambry-rest/src/main/java/com/github/ambry/rest/NettyRequest.java