int rows = table.rows();
if (table != null && rows > 0) {
space(8, buffer).append("<customTable name=\"").
append(entry.getKey()).append("\">\n");
space(12, buffer).append("<head>\n");
for (int i = 0; i < table.columns(); i++) {
space(16, buffer).append("<th>").append(table.getHeader(i)).
append("</th>\n");
}
space(12, buffer).append("</head>\n");