public void takeSnapshot() {
if (!LOG.isDebugEnabled()) {
return;
}
final DebugString debug = new DebugString();
debug(debug);
debug.indent();
debug.appendln();
debug(debug, getPersistenceSession());
if (getCurrentTransaction() != null) {
debug(debug, getCurrentTransaction().getUpdateNotifier());
debug(debug, getCurrentTransaction().getMessageBroker());
}
debugSnapshot = debug.toString();
LOG.debug(debugSnapshot);
}