docs: public void initForNextResponse(IResponse resp) {
          if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))  //306998.15
              logger.entering(CLASS_NAME,"initForNextResponse", "resp = " + resp + " ["+this+"]");
  
          if (resp == null) {
              _rawOut.init(null);
              _bufferedWriter.clean();
              if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))  //306998.15
                  logger.exiting(CLASS_NAME,"initForNextResponse");
              return;
          }
  
          // reset the state before initializing it again and before calling setCommonHeaders.
          resetState();
  
          resp.setStatusCode(200);
          resp.setReason(REASON_OK);
          _statusCode = 200;
  
          // _responseContext.set(new SRTServletResponseContext());
          this._response = resp;
          
          setCommonHeaders();
          
          try
          {
              _rawOut.init(_response.getOutputStream());
          }
          catch (IOException e) {
              logger.logp(Level.SEVERE, CLASS_NAME,"initForNextResponse", "error.initializing.output.stream", e);  /*@283348.1*/
          }
          // LIBERTY _bufferedOut.reset();
          _bufferedWriter.reset();
          // LIBERTY _responseBuffer = null;
          // PK53885 start
          _bufferSize = DEFAULT_BUFFER_SIZE;       
          this._bufferedOut = createOutputStream(DEFAULT_BUFFER_SIZE); // LIBERTY
          if(this._bufferedOut instanceof WCOutputStream){
              (((WCOutputStream) this._bufferedOut).getOutput()).setObserver(this);
           }
          _encoding = null;
          _gotOutputStream = false;
          _gotWriter = false;
          this._pwriter = null;
  
          // Pk53885 end
  
          if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))  //306998.15
              logger.exiting(CLASS_NAME,"initForNextResponse");
  
      }