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