bad name ever. config is about entities. anyway the object (document/entity) is redundant.