private Integer getIdForNewEntity() throws DaoException {
		waitCompete();
		int maxId = 0;
		List<T> list = new ArrayList<T>(getEntities().values());
		for (T tmpT : list) {
			if (tmpT.getId() > maxId) {
				maxId = tmpT.getId();
			}
		}
		return maxId + 1;
	}