recsReturned = qq_RowCount;
if (recsReturned == 1) {
return aCustomer;
}
else {
NoSuchCustomerException noSuchCust = new NoSuchCustomerException();
noSuchCust.setWithParams(Constants.SP_ER_ERROR, "Customer %1 does not exist", pName);
ErrorMgr.addError(noSuchCust);
throw noSuchCust;
}
}