Class<?> type = ((JavaInterface)rcs.getInterfaceContract().getInterface()).getJavaClass();
Object proxy = Proxy.newProxyInstance(type.getClassLoader(), new Class[]{type}, new InvocationHandler() {
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
RuntimeWire wire = rcs.getRuntimeWire(binding);
Operation op = JavaInterfaceUtil.findOperation(method, rcs.getInterfaceContract().getInterface().getOperations());
return wire.invoke(op, args);
}});
servlet.addService(binding.getName(), type, proxy);
}