try {
if (Debug.infoOn()) {
long count = delegator.findCountByCondition("Product", condition, null, null);
Debug.logInfo("========== Found " + count + " products to index ==========", module);
}
entityListIterator = delegator.find("Product", condition, null, null, null, null);
} catch (GenericEntityException gee) {
Debug.logWarning(gee, gee.getMessage(), module);
Map messageMap = UtilMisc.toMap("gee", gee.toString());
errMsg = UtilProperties.getMessage(resource,"productevents.error_getting_product_list", messageMap, UtilHttp.getLocale(request));
request.setAttribute("_ERROR_MESSAGE_", errMsg);