class PersistentMap implements Map<K, V> {

    @Override
    public void putAll(Map<? extends K, ? extends V> m) {
        checkNotNull(m, "The passed in map cannot be null.");
        m.forEach((k, v) -> items.put(serializer.encode(k), serializer.encode(v)));
    }

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

}