txMap1.startTransaction();
try {
beforeCommitBarrier.meet();
txMap1.put("key1", "value2");
txMap1.commitTransaction();
afterCommitBarrier.call();
} catch (InterruptedException e) {
logger.log(Level.WARNING, "Thread interrupted", e);
afterCommitBarrier.reset();
beforeCommitBarrier.reset();
}