docs: function (dir, failOnDups) {
              debug('Loading services from %s', dir);
              di.iterateOverJsFiles(dir, function(dir, file) {
                  var modPath = path.resolve(dir, file);
                  var mod;
                  try {
                      mod = subRequire(modPath); //subRequire inserts the _id field
                  } catch (e) {
                      throw new Error('Could not load ' + modPath + ': ' + e.message);
                  }
                  registerServiceModule(mod, failOnDups);
              });
  
          }