code: public static Writable deserializeFromString(Class<? extends Writable> writableClass, String serializedWritableStr,
        Configuration configuration) throws IOException {
      byte[] writableBytes = BaseEncoding.base64().decode(serializedWritableStr);
  
      try (ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(writableBytes);
          DataInputStream dataInputStream = new DataInputStream(byteArrayInputStream)) {
        Writable writable = ReflectionUtils.newInstance(writableClass, configuration);
        writable.readFields(dataInputStream);
        return writable;
      }
    }
docs: Deserialize a {@link Writable} object from a string.
  
  @param writableClass the {@link Writable} implementation class
  @param serializedWritableStr the string containing a serialized {@link Writable} object
  @param configuration a {@link Configuration} object containing Hadoop configuration properties
  @return a {@link Writable} deserialized from the string
  @throws IOException if there's something wrong with the deserialization