Use the new MongoClient constructor and upgrade the Java client to 2.10.1