Beneficiar beneficiar;
List<Integer> idbeneficiari = new ArrayList<Integer>();
IBeneficiarDao beneficiarDao = new BeneficiarDao();
IGeologBeneficiarDao geologBeneficiarDao = new GeologBeneficiarDao();
IGeologDao geologDao = new GeologDao();
List<Geolog> geologi = geologDao.geologiPublici();
if (geologi != null) {
Iterator it = geologi.iterator();
while (it.hasNext()) {
geolog = (Geolog) it.next();
idbeneficiari = geologBeneficiarDao.getGeologBeneficiariByGeologId(geolog.getIdGeolog());