code: private String performRendering(String pageUrl, DriverRequest originalRequest, CloseableHttpResponse response,
              String body, Renderer[] renderers) throws IOException, HttpErrorPage {
          // Start rendering
          RenderEvent renderEvent = new RenderEvent(pageUrl, originalRequest, response);
          // Create renderer list from parameters.
          renderEvent.getRenderers().addAll(Arrays.asList(renderers));
  
          String currentBody = body;
  
          this.eventManager.fire(EventManager.EVENT_RENDER_PRE, renderEvent);
          for (Renderer renderer : renderEvent.getRenderers()) {
              StringBuilderWriter stringWriter = new StringBuilderWriter(Parameters.DEFAULT_BUFFER_SIZE);
              renderer.render(originalRequest, currentBody, stringWriter);
              stringWriter.close();
              currentBody = stringWriter.toString();
          }
          this.eventManager.fire(EventManager.EVENT_RENDER_POST, renderEvent);
  
          return currentBody;
      }
docs: Performs rendering (apply a render list) on an http response body (as a String).
  
  @param pageUrl
  The remove url from which the body was retrieved.
  @param originalRequest
  The request received by esigate.
  @param response
  The Http Reponse.
  @param body
  The body of the Http Response which will be rendered.
  @param renderers
  list of renderers to apply.
  @return The rendered response body.
  @throws HttpErrorPage
  @throws IOException