code: public static <T extends Writable> T readWritableFromByteArray(
        byte[] bytes, T writable) throws IOException {
      ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
      DataInputStream dis = new DataInputStream(bis);
      writable.readFields(dis);
      return writable;
    }
docs: Read a writable from a byte array, e.g., to parse metadata from a ZNode
  @param bytes The byte array to read into a writable
  @param writable Writable object to read into
  @throws IOException If there an error de-serializing the byte array into
  the writable object