code: function _getChildPrefs(prefItem) {
  
          var finalObj = {},
              keysFound = false;
  
          if (!prefItem) {
              return {};
          }
  
          function _populateKeys(allKeys) {
  
              var prop;
              if (typeof (allKeys) === "object") {
                  // iterate through the list.
                  keysFound = true;
                  for (prop in allKeys) {
                      if (allKeys.hasOwnProperty(prop)) {
                          finalObj[prop] = allKeys[prop];
                      }
                  }
              }
          }
  
          _populateKeys(prefItem.initial);
          _populateKeys(prefItem.keys);
  
          // Last resort: Maybe plain objects, in which case
          // we blindly extract all the properties.
          if (!keysFound) {
              _populateKeys(prefItem);
          }
  
          return finalObj;
      }
docs: /*
  This method tries to match between initial objects
  and key objects and then aggregates objects from both
  the properties.