122123124125126127128129130131132
Criterion crEmail = Restrictions.eq("email", email); result = findUniqueByCriteria(crEmail); if (result == null) { throw new WrongEmailException("User with email " + email + " doesn't exist."); } return result; }