docs: function (rootdir, configData, platform, preferenceMappingData) {
          var preferences = lib.getPreferences(rootdir, platform),
              type = 'preference';
  
          if (!platform) {
              platform = 'generic';
          }
  
          preferences.forEach(function (preference) {
              // check if there are specific configuration to map to config for this platform
              if (!preferenceMappingData || !preferenceMappingData[platform]) {
                  return;
              }
  
              var prefMappingData = preferenceMappingData[platform][preference.attrib.name],
                  target,
                  prefData;
  
              if (prefMappingData) {
                  prefData = {
                      parent: prefMappingData.parent,
                      type: type,
                      destination: prefMappingData.destination,
                      data: preference,
                      map: prefMappingData
                  };
  
                  target = prefMappingData.target;
                  if (!configData[target]) {
                      configData[target] = [];
                  }
                  configData[target].push(prefData);
              }
          });
      }