ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
factory.setServiceClass(GreeterService.class);
factory.setAddress("http://localhost:9090/greeter");
factory.getServiceFactory().setDataBinding(new AegisDatabinding());
GreeterService client = (GreeterService)factory.create();
Map<GreetingPhrase, String> greetings = client.greetMe("Fred");
Assert.assertEquals("Fred", greetings.get(new GreetingPhrase("Hello")));
System.out.println("Invocation result: " + greetings);
try {
class GreeterDataImpl implements GreeterData {