Change casting of "lookup" return value from RMI registry

Change the casting of the "lookup" for RMI to be castet to the interface to create the proxy on client-side, and not the class implementation.