MyRunnable myRunnable = new MyRunnable();
Thread thread = new Thread(myRunnable, "testDeadlockThread");
thread.start();
Thread.sleep(i * 500);
flag.acquire();
TransactionException exception = null;
try {
store.getObject(txn, id2, true);
System.err.println(i + " txn1: commit");
txn.commit();
} catch (TransactionAbortedException e) {