code: @Override
      public PrintWriter getWriter() throws IOException {
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "getWriter: " + this);
          }
          if (this.streamActive) {
              throw new IllegalStateException("Output stream already obtained");
          }
          if (null == this.outWriter) {
              this.outWriter = new PrintWriter(
                              new OutputStreamWriter(
                                              this.outStream, getCharacterEncoding()), false);
          }
          return this.outWriter;
      }
docs: /*
  @see javax.servlet.ServletResponse#getWriter()