docs: function getPlatformPreferences(platform) {
          //init common config.xml prefs if we haven't already
          if(!preferencesData) {
              preferencesData = {
                  common: configXml.findall('preference')
              };
          }
  
          var prefs = preferencesData.common || [];
          if(platform) {
              if(!preferencesData[platform]) {
                  preferencesData[platform] = configXml.findall('platform[@name=\'' + platform + '\']/preference');
              }
              prefs = prefs.concat(preferencesData[platform]);
          }
  
          return prefs;
      }