docs: protected void doRender(final String html, final HttpServletRequest request, final HttpServletResponse response) throws Exception {
          PrintWriter writer;
          try {
              writer = response.getWriter();
          } catch (final Exception e) {
              writer = new PrintWriter(response.getOutputStream());
          }
  
          try {
              if (response.isCommitted()) { // response has been sent redirect
                  writer.flush();
                  writer.close();
  
                  return;
              }
  
              writer.write(html);
              writer.flush();
              writer.close();
          } catch (final Exception e) {
              LOGGER.log(Level.ERROR, "Writes pipe failed: " + e.getMessage());
          }
      }