public class CustomerServiceImpl implements CustomerService {
public List<Customer> getCustomersByName(String name) throws NoSuchCustomerException {
if ("None".equals(name)) {
NoSuchCustomer noSuchCustomer = new NoSuchCustomer();
noSuchCustomer.setCustomerName(name);
throw new NoSuchCustomerException("Did not find any matching customer for name=" + name,
noSuchCustomer);
}
List<Customer> customers = new ArrayList<Customer>();