for (int j = 0; j < count; ++j) {
ResultsRow row = new ResultsRow();
if (count > 1) {
row.addCell(Integer.toString(i + 1) + "-" + Integer.toString(i + count));
} else {
row.addCell(Integer.toString(i + 1));
}
row.append(tableRows.get(i + j));
newRows.add(row);
}