Added support for lazy initialisation for MongoRest extension