607608609610611612613614615616617
for (String fieldName : row.getColNames()) { String rowValue = !row.isNull(fieldName) ? row.getString(fieldName) : "null"; rowMap.put(fieldName, rowValue); // TODO encode to HTML } result.addRow(rowMap); } return result; } }