if ("none".equals(request.getName())) {
NoSuchCustomer noSuchCustomer = new NoSuchCustomer();
noSuchCustomer.setCustomerId(request.getName());
throw new NoSuchCustomerException("Customer not found", noSuchCustomer);
}
GetCustomersByNameResponse response = new GetCustomersByNameResponse();
Customer customer = new Customer();
customer.setName(request.getName());
customer.setRevenue(100000);
response.getReturn().add(customer);
return response;
}