if (tableAttachments != null) {
Set<Map.Entry<String, CustomTableMetrics>> entries =
tableAttachments.entrySet();
for (Map.Entry<String, CustomTableMetrics> entry : entries) {
CustomTableMetrics attachment = entry.getValue();
TableModel table = null;
try {
table = attachment.getResults();
} catch (Exception e) { // Ensure the getResults
// doesn't break report generation.
logger.log(Level.WARNING,
"Exceptions reporting CustomTableMetrics", e);
}