int successCount = 0;
int errorCount = 0;
for (Map.Entry<CellID, CellExportResult> e : results.entrySet()) {
CellID id = e.getKey();
CellExportResult res = e.getValue();
if (res.isSuccess()) {
successCount++;
} else {
errorCount++;
logger.log(Level.WARNING, "Error exporting " + id + ": " +
res.getFailureReason(), res.getFailureCause());
}
}
logger.warning("Exported " + successCount + " cells. " + errorCount +
" errors detected.");