code: function loadModule(id, parentId) {
      var mod = null;
      try {
          mod = loadFromAppDir(id);
      } catch (err) {
          if (parentId) {
              try {
                  mod = loadFromParent(id, parentId);
              } catch (err2) {
                  mod = loadGlobally(id);
              }
          } else {
              mod = loadGlobally(id);
          }
      }
      mod.__id = id;
      return mod;
  }
docs: /*
  Load modules in the following order:
  First try within the app's node_modules
  Next, if this module is required by another module, load it relative to that other module
  Finally, use the normal require call, which will look in the BO server's node_modules