title: MongoDB - DB object or string from MongoClient
body: <p>is there any way to avoid specifying AGAIN the database name when retrieving the collection? I'm already providing that in the uri.</p>
  
  <pre><code>String uri = "mongodb://mongodb01dv:27017/myDB" //&lt;-- I'm providing the db here
  String db = "myDB"
  
  MongoClient mongoClient = new MongoClient(
    new MongoClientURI(uri))
  
  MongoCollection collection = mongoClient
    .getDatabase(db) //&lt;--- I'm providing the db here again
    .getCollection("myCollection")
  </code></pre>