}
public void put(K key, V value) {
try {
MessageDigestStream digestStream = new MessageDigestStream();
KryoBackedEncoder encoder = new KryoBackedEncoder(digestStream);
keySerializer.write(encoder, key);
encoder.flush();
long hashCode = digestStream.getChecksum();
Lookup lookup = header.getRoot().find(hashCode);
boolean needNewBlock = true;
if (lookup.entry != null) {
DataBlock block = store.read(lookup.entry.dataBlock, DataBlock.class);