};
// The default strategy is needed so that HashMap is created via the constructor,
// the StdInstantiatorStrategy (fallback) is needed for classes without default
// constructor (e.g. DelegatingHandler).
final DefaultInstantiatorStrategy instantiatorStrategy = new DefaultInstantiatorStrategy();
instantiatorStrategy.setFallbackInstantiatorStrategy(new StdInstantiatorStrategy());
kryo.setInstantiatorStrategy(instantiatorStrategy);
kryo.register( CGLibProxySerializer.CGLibProxyMarker.class, new CGLibProxySerializer() );
kryo.register( Arrays.asList( "" ).getClass(), new ArraysAsListSerializer() );
return kryo;
}