docs: public void serialize(final Object obj, final ByteBuffer buffer) {
      ByteBufferOutput out = new ByteBufferOutput(buffer);
      Kryo kryo = borrow();
      try {
        kryo.writeClassAndObject(out, obj);
        out.flush();
      } finally {
        release(kryo);
      }
    }