code: function(name) {
        if (name) {
          var i = 0;
          var comps = this.jCal[COMPONENT_INDEX];
          var len = comps.length;
  
          for (; i < len; i++) {
            if (comps[i][NAME_INDEX] === name) {
              var result = this._hydrateComponent(i);
              return result;
            }
          }
        } else {
          if (this.jCal[COMPONENT_INDEX].length) {
            return this._hydrateComponent(0);
          }
        }
  
        // ensure we return a value (strict mode)
        return null;
      }
docs: Finds first sub component, optionally filtered by name.
  
  @param {String=} name        Optional name to filter by
  @return {?ICAL.Component}     The found subcomponent