docs: protected void batchHandle(Iterable<?> entities, BatchType batchType,
  			int batchSize) {
  		Session session = getCurrentSession();
  		Iterator<?> it = entities.iterator();
  		int count = 0;
  		while (it.hasNext()) {
  			count++;
  			Object entity = it.next();
  			switch (batchType) {
  			case SAVE:
  				session.save(entity);
  				break;
  			case UPDATE:
  				session.update(entity);
  				break;
  			case SAVE_OR_UPDATE:
  				session.saveOrUpdate(entity);
  				break;
  			case DELETE:
  				session.delete(entity);
  				break;
  			}
  			if (count % batchSize == 0) {
  				session.flush();
  				session.clear();
  			}
  		}
  	}