}
String returnItemSeqId = UtilXml.childElementValue(documentRefElement, "of:LINENUM");
if (UtilValidate.isNotEmpty(returnItemSeqId)) {
// if there is a LINENUM/returnItemSeqId make sure it is valid
GenericValue returnItem = delegator.findByPrimaryKeyCache("ReturnItem", UtilMisc.toMap("returnId", returnId, "returnItemSeqId", returnItemSeqId));
if (returnItem == null) {
String errMsg = "Return Item with ID [" + returnId + ":" + returnItemSeqId + "] not found (invalid Return/Item ID Combination).";
errorMapList.add(UtilMisc.toMap("reasonCode", "ReturnAndItemIdNotValid", "description", errMsg));
Debug.logError(errMsg, module);
continue;