private void getTransMode(AbstractDao dao, List<Direction> directions) throws DaoException {
        for (Direction dir : directions) {
            Criteria crit = new Criteria();
            crit.addParam(DAO_ID_TRANSMODE, dir.getTransMode().getIdMode());
            List<TransMode> mode = dao.findTransModes(crit);
            dir.setTransMode(mode.get(0));
        }
    }