code: public void finish() {
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "Finishing " + this);
          }
          // if there is a print writer, flush any content unless it is already
          // closed. We don't need to do this with streams.
          if (null != this.outWriter) {
              this.outWriter.checkError();
          }
      }
docs: Finish any processing necessary before the connection begins it's
  own final work and completes this request/response exchange.