public byte[] serializeObject(T value) {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        Output output = new Output(baos);
        KRYOS.get().writeObject(output, value);
        output.flush();
        return baos.toByteArray();
    }
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