code: function(item) {
        var parts = item.displayName.split('.');
        for (var i = parts.length - 1; i > 0; i--) {
          var name = parts.slice(0, i).join('.');
          if (itemsByName[name]) {
            return itemsByName[name];
          }
        }
      }
docs: Try to find a parent by matching the longest substring of the display
  name.
  @param item