@Override
        public void write(Kryo kryo, Output output, AbstractUserAgentAnalyzerDirect object) {
            super.write(kryo, output, object);
            output.writeInt(((AbstractUserAgentAnalyzer)object).cacheSize);
        }
This is used to configure the provided Kryo instance if Kryo serialization is desired.
The expected type here is Object because otherwise the Kryo library becomes
a mandatory dependency on any project that uses Yauaa.
@param kryoInstance The instance of com.esotericsoftware.kryo.Kryo that needs to be configured.
analyzer/src/main/java/nl/basjes/parse/useragent/AbstractUserAgentAnalyzer.java