public static KryoPool defaultPool() {
synchronized(mutex) {
if (kpool == null) {
try {
KryoInstantiator kryoInst = new ConfiguredInstantiator(new HadoopConfig(clojureConf()));
kpool = KryoPool.withByteArrayOutputStream(MAX_CACHED_KRYO, kryoInst);
} catch (ConfigurationException cx) {
throw new RuntimeException(cx);
}
}