class PersistentMap implements Map<K, V> {

    @Override
    public V get(Object key) {
        checkNotNull(key, "Key cannot be null.");
        return serializer.decode(items.get(serializer.encode(key)));
    }

    public  PersistentMap(Serializer serializer, DB database, String name);

}