//Use MongoDbLibraryConfiguration instend of LibraryConfiguration//Type list with MongoDbModule @OverrideprotectedLibraryConfigurationconfigure() {returnnewMongoDbLibraryConfiguration(this, getConfiguratorsInitializer()).builder().setGameManager(newMyGameManager()).registerModules(newMongoDbModule()).build(); }
with custom MongoDb module configuration (Optional but recommended)