MongoItemReaderWriterBase.java:[159,25] getDB(java.lang.String) in com.mongodb.Mongo has been deprecated. It should be updated to use the correct API.
public DB getDB(String dbName)
Deprecated. use MongoClient.getDatabase(String)
Gets a database object. Users should use MongoClient.getDatabase(String) instead.
The DB class has been superseded by MongoDatabase. The deprecation of this method effectively deprecates the DB, DBCollection, and DBCursor classes, among others; but in order to give users time to migrate to the new API without experiencing a huge number of compiler warnings, those classes have not yet been formally deprecated.
dbName - the name of the database to retrieve
a DB representing the specified database