call MongoDbUtils.closeDB(mongoDB) from finally block in
doCommit/doRollback.
Format code using etc/formatting.xml