code: public static <K> K load(Configuration conf, String keyName,
        Class<K> itemClass) throws IOException {
      DefaultStringifier<K> stringifier = new DefaultStringifier<K>(conf,
          itemClass);
      try {
        String itemStr = conf.get(keyName);
        return stringifier.fromString(itemStr);
      } finally {
        stringifier.close();
      }
    }
docs: Restores the object from the configuration.
  
  @param <K> the class of the item
  @param conf the configuration to use
  @param keyName the name of the key to use
  @param itemClass the class of the item
  @return restored object
  @throws IOException : forwards Exceptions from the underlying
  {@link Serialization} classes.