Example of thrift usage in java server-client application