Change Client interface. Replace written and read value from ByteBuffer to Map<String, ByteBuffer>. Build app is broken.