/** * This method... * * @param knownCustomers * @param customer * @return */ private ContractsAndGrantsAgingReport pickContractsGrantsAgingReportDetail( Map<String, ContractsAndGrantsAgingReport> knownCustomers, String customer) { ContractsAndGrantsAgingReport agingReportDetail = null; if (ObjectUtils.isNull(agingReportDetail = knownCustomers.get(customer))) { agingReportDetail = new ContractsAndGrantsAgingReport(); agingReportDetail.setCustomerNumber(customer.substring(0, customer.indexOf('-'))); agingReportDetail.setCustomerName(customer.substring(customer.indexOf('-') + 1)); knownCustomers.put(customer, agingReportDetail); } return agingReportDetail; }