class KryoSerializers {

    public static Output serializeDocumentForIndexing(Object o, int maxSize) {
        Kryo k = getKryoThreadLocalForDocuments();
        byte[] buffer = getBuffer(DEFAULT_BUFFER_SIZE_BYTES);
        OutputWithRoot out = new OutputWithRoot(buffer, maxSize, o);
        k.writeClassAndObject(out, o);
        return out;
    }

    private  KryoSerializers();

}