code: @Override
      public Cookie[] getCookies() {
          List<HttpCookie> cookies = this.request.getCookies();
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "getCookies: " + cookies.size());
          }
          if (cookies.isEmpty()) {
              return null;
          }
          Cookie[] output = new Cookie[cookies.size()];
          int i = 0;
          for (HttpCookie cookie : cookies) {
              output[i++] = new Cookie(cookie.getName(), cookie.getValue());
          }
          return output;
      }
docs: /*
  @see javttp.HttpServletRequest#getCookies()