@Override
public final void registerClasses(Kryo kryo) {
try {
JavaBridge.enhanceRegistry(kryo);
kryo.register(Tuple2.class, new Tuple2Serializer());
// we have to reflect this scala class since it's private wheeee
// and grouping returns these, will be fixed in spark 1.0.1
// Class cls = Class.forName("scala.collection.convert.Wrappers$IterableWrapper");