All entities extend AbstractDocument class. Configuration of Mongo extends AbstractMongoConfiguration