RMI java interaction with server