Added ensureIndexes method to the EMongoDocument