private List<Country> getCountryInfo(AbstractDao dao, List<LinkDirectionCountry> links) throws DaoException {
        List<Country> list = new ArrayList<>();
        for (LinkDirectionCountry link : links) {
            Criteria crit = new Criteria();
            crit.addParam(DAO_ID_COUNTRY, link.getIdCountry());
            List<Country> countries = dao.findCountries(crit);
            if (countries != null) {
                list.addAll(countries);
            }
        }
        Country.NameComparator comparator = new Country.NameComparator();
        Collections.sort(list, comparator);
        return list;
    }