private void fillUsers(List<User> users, AbstractDao dao) throws DaoException {
        for (User u : users) {
            Criteria crit = new Criteria();
            crit.addParam(DAO_ID_ROLE, u.getRole().getIdRole());
            u.setRole(dao.findRoles(crit).get(0));
        }
    }