// first check to see if intro and discontinue dates are within range
GenericValue productTo = null;
try {
productTo = delegator.findByPrimaryKeyCache("Product", UtilMisc.toMap("productId", productIdTo));
} catch (GenericEntityException e) {
Debug.logError(e, module);
Map<String, String> messageMap = UtilMisc.toMap("productIdTo", productIdTo, "errMessage", e.toString());
return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
"productservices.error_finding_associated_variant_with_ID_error", messageMap, locale));