code: function nameValMatch(definedNameVals, lookupKey) {
      var keys = _.keys(definedNameVals),
          key,
          index;
      for (index in keys) {
          key = keys[index];
          if (key === lookupKey) {
              return {
                  matchedWith: lookupKey,
                  match: definedNameVals[key]
              };
          } else if (!definedNameVals[key].matchKeyCase && (key.toUpperCase() === (lookupKey.toUpperCase()))) {
              return {
                  matchedWith: key,
                  match: definedNameVals[key]
              };
          }
      }
      return null;
  }
docs: TODO TestMe 
  Find a name val with name mathcing lookup key.
  @param definedNameVals
  @param lookupKey
  @returns the matched matched name val and the key used to find it {matchedWith: key, match : nameVal} or null if no match.