code: public KryoInstantiator setClassLoader(final ClassLoader cl) {
      return new KryoInstantiator() {
        public Kryo newKryo() {
          Kryo k = KryoInstantiator.this.newKryo();
          k.setClassLoader(cl);
          return k;
        }
      };
    }
docs: Use this to set a specific classloader