code: 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);
    }
docs: If this reflector needs config to be set, that should be done PRIOR to making this call.
  This mode serializes an instance (ki) to be used as the delegate.
  Only use this mode if reflection alone will not work.