* Only use this mode if reflection alone will not work.
*/
public static void setSerialized(Config conf, Class<? extends KryoInstantiator> reflector, KryoInstantiator ki)
throws ConfigurationException {
KryoInstantiator refki = reflect(reflector, conf);
String kistr = serialize(refki.newKryo(), ki);
// Verify, that deserialization works:
KryoInstantiator deser = deserialize(refki.newKryo(), kistr); // ignore the result, just see if it throws
deser.newKryo(); // just see if we can still create it
conf.set(KEY, reflector.getName() + ":" + kistr);
}