code: public static String formatResponse(Response response) {
          if (response == null) {
              return "";
          }
          StringBuilder output = new StringBuilder();
          if (response.isData()) {
              output.append(DIV_I);
              Gson gson = new GsonBuilder().setPrettyPrinting().create();
              if (response.getArrayData() != null) {
                  output.append(gson.toJson(response.getArrayData()));
              }
              if (response.getObjectData() != null) {
                  output.append(gson.toJson(response.getObjectData()));
              }
              output.append(END_IDIV);
          }
          return formatHTML(output.toString());
      }
docs: Formats the response parameters to be 'prettily' printed out in HTML
  
  @param response - the http response to be formatted.
  @return String: a 'prettily' formatted string that is HTML safe to output