exportedInterfaces.add(iface);
}
public Object lookup(Class<?> iface) throws RemoteException, NotBoundException {
Registry registry = LocateRegistry.getRegistry(serverHost, serverPort);
IRemoteInvocationHandler remote = (IRemoteInvocationHandler) registry.lookup(iface.getName());
return LocalInvocationHandlerImpl.create(iface, remote, exportedInterfaces);
}