Criterion crPassportRegNo = Restrictions.eq("passportRegNo",
passportRegNo);
result = (PersonalCustomerEntity) findUniqueByCriteria(crPassportRegNo);
if (result == null) {
throw new WrongPassportRegNo(
"Personal customer with passportRegNo = " + passportRegNo
+ "doesn't exist.");
}
return result;