private void endDBQueryLog(int level) {
if (dbQueryLog.isDebugEnabled()) {
StackTraceElement traceElement = Thread.currentThread().getStackTrace()[level];
if (traceElement.getClassName().equals(this.getClass().getCanonicalName())) {
StatisticsRecord statisticsRecord = DBQueryStatisticsLog.getStatisticsRecord();
if (statisticsRecord.decrement() == 0) {
final StatisticsRecord clone = new StatisticsRecord(statisticsRecord);
Runnable runnable = new Runnable() {
public void run() {
if (clone.getTableRecords().length > 0) {
dbQueryLog.debug("");