code: protected void printMessage(HttpServletResponse httpServletResponse, String message) throws IOException {
          // Set response content type
          httpServletResponse.setContentType("text/html");
          // Actual logic goes here.
          PrintWriter out = httpServletResponse.getWriter();
          out.println("<pre>" + message + "</pre>");
          //out.close();
      }
docs: Help function that writes a string to the output surrounded with {@code <pre> </pre>}
  
  @param httpServletResponse a {@link javax.servlet.http.HttpServletResponse} object.
  @param message             the message we want to write
  @throws java.io.IOException if any.