boolean takeLocks = (this.getTransactionState().getRestartCounter() == 0);
// -------------------- LOCK BEFORE QUERY --------------------
ProfileMeasurement pm_before = new ProfileMeasurement("BEFORE");
LOG.info(this.getTransactionState() + " - Blocking until LOCK_BEFORE is released");
pm_before.start();
try {
// Notify others before we lock
NOTIFY_BEFORE.release();
if (takeLocks) LOCK_BEFORE.acquire();
} catch (InterruptedException ex) {