final DebugBuilder debug = new DebugTee(debugText, debugHtml);
try {
debug.startSection("Exception");
debug.appendException(exception);
debug.endSection();
} catch (final RuntimeException e) {
debug.appendln("NOTE - an exception occurred while dumping an exception!");
debug.appendException(e);
}