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);
}
if (IsisContext.getCurrentTransaction() != null) {
final List<String> messages = IsisContext.getMessageBroker().getMessages();
final List<String> warnings = IsisContext.getMessageBroker().getWarnings();