code: public static <K> K[] loadArray(Configuration conf, String keyName,
        Class<K> itemClass) throws IOException {
      DefaultStringifier<K> stringifier = new DefaultStringifier<K>(conf,
          itemClass);
      try {
        String itemStr = conf.get(keyName);
        ArrayList<K> list = new ArrayList<K>();
        String[] parts = itemStr.split(SEPARATOR);
  
        for (String part : parts) {
          if (!part.equals(""))
            list.add(stringifier.fromString(part));
        }
  
        return GenericsUtil.toArray(itemClass, list);
      }
      finally {
        stringifier.close();
      }
    }
docs: Restores the array of objects 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.