I am migrating an application from using MongoDB Java driver v. 3.6.4 to v. 4.1.1
In 3.6.4 configuration is passed via MongoClientOptions
@Bean pub