Trivial RPC protocol based on Java serialization