repository: added createEntity() & createCollection() methods