keyBytesLength = dataIn.readInt();
valueBytesLength = dataIn.readInt();
keyBytes = chunkAsBytes.consume(keyBytesLength);
// skip any excess
chunkAsBytes.clear();
// process the read data
key = persistentMap.getKeyCoder().decode(keyBytes.getInputStream());
}