docs: function getPlatformApi(platform, platformRootDir) {
  
      // if platformRootDir is not specified, try to detect it first
      if (!platformRootDir) {
          var projectRootDir = util.isCordova();
          platformRootDir = projectRootDir && path.join(projectRootDir, 'platforms', platform);
      }
  
      if (!platformRootDir) {
          // If platformRootDir is still undefined, then we're probably is not inside of cordova project
          throw new Error('Current location is not a judpack project');
      }
  
      // CB-11174 Resolve symlinks first before working with root directory
      platformRootDir = util.convertToRealPathSafe(platformRootDir);
  
      var cached = cachedApis[platformRootDir];
      if (cached && cached.platform == platform) return cached;
  
      if (!platforms[platform]) throw new Error('Unknown platform ' + platform);
  
      var PlatformApi;
  
    //WEEK_HOOK
      // try {
      //     // First we need to find whether platform exposes its' API via js module
      //     // If it does, then we require and instantiate it.
      //     var platformApiModule = path.join(platformRootDir, 'cordova', 'Api.js');
      //     PlatformApi = require(platformApiModule);
      // } catch (err) {
      //     // Check if platform already compatible w/ PlatformApi and show deprecation warning
      //     if (err && err.code === 'MODULE_NOT_FOUND' && platforms[platform].apiCompatibleSince) {
      //         events.emit('warn', ' Using this version of judpack with older version of judpack-' + platform +
      //             ' is being deprecated. Consider upgrading to judpack-' + platform + '@' +
      //             platforms[platform].apiCompatibleSince + ' or newer.');
      //     } else {
      //         events.emit('warn', 'Error loading judpack-'+platform);
      //     }
      //
      //     PlatformApi = require('./PlatformApiPoly');
      // }
  
    var platformPath = platform + '_' + 'pack';
    var platformApiPath = path.join(__dirname, platformPath, 'Api.js');
    PlatformApi = require(platformApiPath);
  
      var platformApi = new PlatformApi(platform, platformRootDir, events);
      cachedApis[platformRootDir] = platformApi;
      return platformApi;
  }