code: private void finish() throws IOException
  	{
  		if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
  			logger.logp(Level.FINE, CLASS_NAME,"finish", "finish");
          }
  		if (length == -1 && total != 0)
  			length = total;
  		//PK89810 Start
  		if (WCCustomProperties.FINISH_RESPONSE_ON_CLOSE) {			
  			WebContainerRequestState reqState = WebContainerRequestState.getInstance(false);		
  			if (reqState==null || reqState.getAttribute("com.ibm.ws.webcontainer.appIsArdEnabled")==null){
  				if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))
          			logger.logp(Level.FINE, CLASS_NAME,"finish", "finishresponseonclose and appIsNotArdEnabled, setLastBuffer to true");
  				response.setLastBuffer(true);	
  			}       	
  		}//PK89810 End
  		flush();
  	}
docs: Finishes the current response.