public MongoDatabase getDatabase(final String databaseName) {
        MongoClientOptions clientOptions = getMongoClientOptions();
        return new MongoDatabaseImpl(databaseName, clientOptions.getCodecRegistry(), clientOptions.getReadPreference(),
                clientOptions.getWriteConcern(), clientOptions.getRetryWrites(), clientOptions.getRetryReads(),
                clientOptions.getReadConcern(), createOperationExecutor());
    }
public MongoDatabase getDatabase ( final String databaseName ) { MongoClientOptions clientOptions = getMongoClientOptions ( ) ; return new MongoDatabaseImpl ( databaseName , clientOptions . getCodecRegistry ( ) , clientOptions . getReadPreference ( ) , clientOptions . getWriteConcern ( ) , clientOptions . getRetryWrites ( ) , clientOptions . getRetryReads ( ) , clientOptions . getReadConcern ( ) , createOperationExecutor ( ) ) ; }
@param databaseName the name of the database to retrieve
@return a {@code MongoDatabase} representing the specified database
@throws IllegalArgumentException if databaseName is invalid
@see MongoNamespace#checkDatabaseNameValidity(String)