docs: 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;
  }