Source:
<code>public boolean execute(String jobName, Date jobRunDate) throws InterruptedException { newVendorSummary = new NewVendorSummary(); PaymentWorksNewVendorDetailDTO newVendorDetail = null; PaymentWorksVendor paymentWorksNewVendor = null; boolean routed = false; boolean jobCompletedSuccessfully = true; List<PaymentWorksNewVendorDTO> results = paymentWorksWebService.getPendingNewVendorRequestsFromPaymentWorks(); for (PaymentWorksNewVendorDTO newVendor : results) { if (!paymentWorksVendorService.isExistingPaymentWorksVendor(newVendor.getId(), PaymentWorksConstants.TransactionType.NEW_VENDOR)) { try { newVendorDetail = paymentWorksWebService.getVendorDetailFromPaymentWorks(newVendor.getId()); paymentWorksNewVendor = paymentWorksVendorService.savePaymentWorksVendorRecord(newVendorDetail); routed = paymentWorksKfsService.routeNewVendor(paymentWorksNewVendor); if (routed) { processVendor(paymentWorksNewVendor, PaymentWorksConstants.PaymentWorksNewVendorStatus.APPROVED, PaymentWorksConstants.PaymentWorksStatusText.APPROVED, PaymentWorksConstants.ProcessStatus.VENDOR_CREATED, routed); } else { processVendor(paymentWorksNewVendor, PaymentWorksConstants.PaymentWorksNewVendorStatus.REJECTED, PaymentWorksConstants.PaymentWorksStatusText.REJECTED, PaymentWorksConstants.ProcessStatus.VENDOR_REJECTED, routed); jobCompletedSuccessfully = false; } LOG.info("paymentWorksNewVendor.isCustomFieldConversionErrors()" + paymentWorksNewVendor.isCustomFieldConversionErrors()); jobCompletedSuccessfully = jobCompletedSuccessfully && !paymentWorksNewVendor.isCustomFieldConversionErrors(); } catch (Exception e) { LOG.error("Error processing new vendor(" + newVendor.getId() + "): " + e.getMessage()); routed = false; jobCompletedSuccessfully = false; GlobalVariables.getMessageMap().clearErrorMessages(); } } } if (!jobCompletedSuccessfully) { <START> throw new RuntimeCacheException("There was an error processing new vendors from Payment Works"); <END> } return jobCompletedSuccessfully; }</code><technical_language>this RuntimeException</technical_language>

Target:
public boolean execute(String jobName, Date jobRunDate) throws InterruptedException { newVendorSummary = new NewVendorSummary(); PaymentWorksNewVendorDetailDTO newVendorDetail = null; PaymentWorksVendor paymentWorksNewVendor = null; boolean routed = false; boolean jobCompletedSuccessfully = true; List<PaymentWorksNewVendorDTO> results = paymentWorksWebService.getPendingNewVendorRequestsFromPaymentWorks(); for (PaymentWorksNewVendorDTO newVendor : results) { if (!paymentWorksVendorService.isExistingPaymentWorksVendor(newVendor.getId(), PaymentWorksConstants.TransactionType.NEW_VENDOR)) { try { newVendorDetail = paymentWorksWebService.getVendorDetailFromPaymentWorks(newVendor.getId()); paymentWorksNewVendor = paymentWorksVendorService.savePaymentWorksVendorRecord(newVendorDetail); routed = paymentWorksKfsService.routeNewVendor(paymentWorksNewVendor); if (routed) { processVendor(paymentWorksNewVendor, PaymentWorksConstants.PaymentWorksNewVendorStatus.APPROVED, PaymentWorksConstants.PaymentWorksStatusText.APPROVED, PaymentWorksConstants.ProcessStatus.VENDOR_CREATED, routed); } else { processVendor(paymentWorksNewVendor, PaymentWorksConstants.PaymentWorksNewVendorStatus.REJECTED, PaymentWorksConstants.PaymentWorksStatusText.REJECTED, PaymentWorksConstants.ProcessStatus.VENDOR_REJECTED, routed); jobCompletedSuccessfully = false; } LOG.info("paymentWorksNewVendor.isCustomFieldConversionErrors()" + paymentWorksNewVendor.isCustomFieldConversionErrors()); jobCompletedSuccessfully = jobCompletedSuccessfully && !paymentWorksNewVendor.isCustomFieldConversionErrors(); } catch (Exception e) { LOG.error("Error processing new vendor(" + newVendor.getId() + "): " + e.getMessage()); routed = false; jobCompletedSuccessfully = false; GlobalVariables.getMessageMap().clearErrorMessages(); } } } if (!jobCompletedSuccessfully) { throw new RuntimeException("There was an error processing new vendors from PaymentWorks"); } return jobCompletedSuccessfully; }