} else if (!isNumeric(cnp)) {
setCnpIncorect(true);
return new ForwardResolution("/WEB-INF/jsp/adaugaBeneficiar.jsp");
}
Beneficiar beneficiar = new Beneficiar(nume, cnp, mentiuni, null);
beneficiarDao.saveOrUpdate(beneficiar);
Beneficiar bAux = beneficiarDao.getBeneficiarCnp(cnp);
int idGeolog = getIdGeologLogat();
IGeologBeneficiarDao geologBeneficiarDao = new GeologBeneficiarDao();
geologBeneficiarDao.saveOrUpdate(new GeologBeneficiar(idGeolog, bAux.getIdBeneficiar()));
getContext().getRequest().getSession(true).setAttribute("beneficiarProiect", bAux);