def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def copy(self):
        return ConfigDict(self._collection.copy(), path=self._path, resolver=self._resolver)