List<CustomerDto> customerDtoList = new ArrayList<CustomerDto>();
Customer searchCustomer = new Customer();
searchCustomer.setName(searchName);
Iterator<Customer> it = customerService.findEntitiesByCriteria(searchCustomer, maxResults).iterator();
while(it.hasNext()) {
customerDtoList.add(new CustomerDto(it.next(), messageSource, currentLocale));
}
return customerDtoList;
}