code: public synchronized void setResponse(HttpServletResponse response) {
  
          if (perThreadResponse == null) {
              perThreadResponse = new ThreadLocal<HttpServletResponse>();
          }
          perThreadResponse.set(response);
      }
docs: Sets the current response.<p>
  
  @param response the response to set