code: private List<String> getResultRows(Result<?> result, boolean logResult) {
          List<String> rows = new ArrayList<>();
          if (logResult) {
              for (Map<String, Object> columns : result.getRows()) {
                  StringBuilder row = new StringBuilder();
                  for (Map.Entry<String, Object> entry : columns.entrySet()) {
                      if (row.length() > 0) {
                          row.append(", ");
                      }
                      row.append(entry.getKey());
                      row.append('=');
                      String stringValue = getLabel(entry.getValue());
                      row.append(stringValue);
                  }
                  rows.add("  " + row.toString());
              }
          }
          return rows;
      }
docs: Convert the result rows into a string representation.
  
  @param result
  The result.
  @param logResult
  if `false` suppress logging the result.
  @return The string representation as list.