private static void registerDeserializers(Kryo kryo) {
        // register deserializers for java collections that are not available by default
        kryo.register(Arrays.asList("").getClass(), new ArraysAsListSerializer());
        kryo.register(Arrays.asList("").getClass(), new ArraysAsListSerializer());
        kryo.register(Collections.EMPTY_LIST.getClass(), new CollectionsEmptyListSerializer());
        kryo.register(Collections.EMPTY_MAP.getClass(), new CollectionsEmptyMapSerializer());
        kryo.register(Collections.EMPTY_SET.getClass(), new CollectionsEmptySetSerializer());
        kryo.register(Collections.singletonList("").getClass(),
                new CollectionsSingletonListSerializer());
        kryo.register(Collections.singleton("").getClass(),
                new CollectionsSingletonSetSerializer());
        kryo.register(Collections.singletonMap("", "").getClass(),
                new CollectionsSingletonMapSerializer());
    }
A thread-safe wrapper for serialization using Kryos.

@author aeciosantos

@param <T> The type of the object which will be serialized/unserialized.
ache/src/main/java/achecrawler/util/Kryos.java