Update MongoFactory.java