docs: public static OutputStream checkAndWrap(HttpServletRequest httpRequest,
                                              HttpServletResponse httpResponse,
                                              boolean requireWantsHeader) throws
                                                                          IOException {
          OutputStream responseStream = httpResponse.getOutputStream();
  
          // GZIP Support handled here. First we must ensure that we want to use gzip, and that the client supports gzip
          boolean acceptsGzip = Collections.list(httpRequest.getHeaders(ACCEPT_ENCODING)).stream().anyMatch(STRING_MATCH);
          boolean wantGzip = httpResponse.getHeaders(CONTENT_ENCODING).contains(GZIP);
  
          if (acceptsGzip) {
              if (!requireWantsHeader || wantGzip) {
                  responseStream = new GZIPOutputStream(responseStream, true);
                  addContentEncodingHeaderIfMissing(httpResponse, wantGzip);
              }
          }
  
          return responseStream;
      }