@SuppressWarnings("unchecked")
public void configureForMapReduce(Job job, PType<?> ptype, Path outputPath, String name) {
Preconditions.checkNotNull(name, "Output name should not be null"); // see CRUNCH-82
Converter converter = getConverter(ptype);
Class<?> keyClass = converter.getKeyClass();
Class<?> valueClass = Void.class;
CrunchOutputs.addNamedOutput(job, name, formatBundle, keyClass, valueClass);
job.setOutputFormatClass(formatBundle.getFormatClass());
formatBundle.configure(job.getConfiguration());