Criterion crOrderRegNo = Restrictions.eq("orderRegNo", orderRegNo);
result = findUniqueByCriteria(crOrderRegNo);
if (result == null) {
throw new WrongOrderRegNoException("Order with orderRegNo: \""
+ orderRegNo + "\" doesn't exist.");
}
return result;
}