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