code: public static <T extends Writable> void setCollection(Job job, Class<T> valueClass,
                                                            Collection<T> collection) throws IOException {
          setCollection(job.getConfiguration(), valueClass, collection);
      }
docs: Stores the given collection as a configuration value. When getSplits() runs later,
  it will be able to deserialize the collection and use it.