code: @Override
      protected byte[] serialize(Object o) {
          ClassLoaderRegisteringObjectInputStream.register(o.getClass());
          return super.serialize(o);
      }
docs: Same as method in {@link SerializingTranscoder}, but registers object's class loader with
  {@link ClassLoaderRegisteringObjectInputStream} for later deserialization.