Customer customer = createCustomer();
CustomerProcessor customerProcessor = (CustomerProcessor) TransporterClient.createTransporterClient(locatorURI, CustomerProcessor.class);
System.out.println("Customer to be processed: " + customer);
ICustomer processedCustomer = customerProcessor.processCustomer(customer);
// processedCustomer returned is actually a proxy to the Customer instnace
// that lives on the server. So when print it out below, will actually
// be calling back to the server to get the string (vi toString() call).
// Notice the output of 'Customer.toString() being called.' on the server side.
System.out.println("Customer is now: " + processedCustomer);