code: function buildAppConfigAndLoadTemplates(appName, config, controllerJsDir, commonJsDir, sessionStore,
                                          boundInjectObjectTemplateFunc) {
      loadAppConfigToContext(appName, config, controllerJsDir, commonJsDir, boundInjectObjectTemplateFunc, sessionStore);
  
      if (config.templateMode === 'typescript') {
          return loadTSTemplates(appName);
      }
  
      return loadTemplates(appName);
  }
docs: Used to add inject props during get/load templates.
  
  @param {String} appName - The app name.
  @param {Object} config - The app specific config from the config store.
  @param {String} controllerJsDir - The path for app files.
  @param {String} commonJsDir - The path for common files.
  @param {Object} sessionStore - unknown
  @param {Function} boundInjectObjectTemplateFunc - A bound version of injectObjectTemplate.
  
  @returns {[Object, Object]}