public void intermediateCommit() {
   if (countCommit % COMMIT_INTERVAL == 0) {
     transaction.endTransaction();
     transaction.finish();
     transaction.beginTransaction();
     // logger.info("commit selectBestCellToMove: " + countCommit);
   }
   countCommit++;
 }
 public void commit() {
   transaction.endTransaction();
   transaction.finish();
 }