encapsulate MetadataManager into MongoClientWrapper