final byte[] cardinality = new byte[cardLength];
in.read(cardinality, 0, cardLength);
try {
counts.put(key, new DistinctCountPayload(count, cardinality));
} catch(final ClassNotFoundException e) {
throw new ElasticSearchException("Unable to deserialize facet cardinality object", e);
}
}
}