The protected com.mongodb.DB#doGetCollection method is not called by the driver, so overriding it is useless. It should be deprecated to reduce the chance for confusion.