code: static Cookie toNettyCookie(ResponseCookie resCookie) {
          final DefaultCookie cookie = new DefaultCookie(resCookie.getName(), resCookie.getValue());
          cookie.setHttpOnly(resCookie.isHttpOnly());
          cookie.setMaxAge(resCookie.getMaxAge().getSeconds());
          cookie.setSecure(resCookie.isSecure());
          // Domain and path are nullable, but the setters allow null as their input.
          cookie.setDomain(resCookie.getDomain());
          cookie.setPath(resCookie.getPath());
          return cookie;
      }
docs: Converts the specified {@link ResponseCookie} to Netty's {@link Cookie} interface.