@Override
    public V remove(Object key) {
        makeWritable();
        return map.remove(key);
    }
Override to avoid using iterator.remove
vespajlib/src/main/java/com/yahoo/collections/CopyOnWriteHashMap.java