Source:
<code>protected boolean uploadVendorsToPaymentWorks(Collection<PaymentWorksVendor> vendors, PaymentWorksUploadSuppliersBatchReportData reportData) { InputStream vendorCsvDataStream = null; try { checkForPotentialVendorDeletionAttempts(vendors); byte[] vendorCsvData = generateVendorCsvDataForUpload(vendors); vendorCsvDataStream = new ByteArrayInputStream(vendorCsvData); int receivedVendorCount = paymentWorksWebServiceCallsService.uploadVendorsToPaymentWorks(vendorCsvDataStream); reportData.getRecordsProcessedByPaymentWorksSummary().setRecordCount(receivedVendorCount); if (receivedVendorCount != vendors.size()) { LOG.warn("uploadVendorsToPaymentWorks, " + vendors.size() + " vendors were sent to PaymentWorks, but PaymentWorks reported that it received " + receivedVendorCount + " vendors instead"); reportData.getGlobalMessages().add(paymentWorksBatchUtilityService.retrievePaymentWorksParameterValue( <START> PaymentWorksParameterConstants.PAYMENTWORKS_UPLOAD_SUPPLIERS_REPORT_VENDOR_COUNT_MISMATCH_MESSAGE)); <END> } return true; } catch (RuntimeException e) { LOG.error("uploadVendorsToPaymentWorks, error encountered when uploading vendors to PaymentWorks", e); reportData.getGlobalMessages().add(paymentWorksBatchUtilityService.retrievePaymentWorksParameterValue( PaymentWorksParameterConstants.PAYMENTWORKS_UPLOAD_SUPPLIERS_REPORT_VENDOR_UPLOAD_FAILURE_MESSAGE)); return false; } finally { IOUtils.closeQuietly(vendorCsvDataStream); } }</code><technical_language>this point code is detecting is a problem, reporting specifics population issue? IMHO, recording identifiers of items issue checked for point problem happens. hard try find population conditions on</technical_language>

Target:
protected boolean uploadVendorsToPaymentWorks(Collection<PaymentWorksVendor> vendors, PaymentWorksUploadSuppliersBatchReportData reportData) { InputStream vendorCsvDataStream = null; try { checkForPotentialVendorDeletionAttempts(vendors); byte[] vendorCsvData = generateVendorCsvDataForUpload(vendors); vendorCsvDataStream = new ByteArrayInputStream(vendorCsvData); int receivedVendorCount = paymentWorksWebServiceCallsService.uploadVendorsToPaymentWorks(vendorCsvDataStream); reportData.getRecordsProcessedByPaymentWorksSummary().setRecordCount(receivedVendorCount); if (receivedVendorCount != vendors.size()) { LOG.warn("uploadVendorsToPaymentWorks, " + vendors.size() + " vendors were sent to PaymentWorks, but PaymentWorks reported that it received " + receivedVendorCount + " vendors instead"); String warningPrefix = paymentWorksBatchUtilityService.retrievePaymentWorksParameterValue( PaymentWorksParameterConstants.PAYMENTWORKS_UPLOAD_SUPPLIERS_REPORT_VENDOR_COUNT_MISMATCH_MESSAGE_PREFIX); reportData.getGlobalMessages().add(warningPrefix + buildVendorNumberList(vendors)); } return true; } catch (RuntimeException e) { LOG.error("uploadVendorsToPaymentWorks, error encountered when uploading vendors to PaymentWorks", e); String errorPrefix = paymentWorksBatchUtilityService.retrievePaymentWorksParameterValue( PaymentWorksParameterConstants.PAYMENTWORKS_UPLOAD_SUPPLIERS_REPORT_VENDOR_UPLOAD_FAILURE_MESSAGE_PREFIX); reportData.getGlobalMessages().add( formatGlobalErrorMessage(errorPrefix, buildVendorNumberList(vendors), e.getMessage())); return false; } finally { IOUtils.closeQuietly(vendorCsvDataStream); } }