code: function matchQuery(entry, name, params) {  // {{{2
    if (! entry.kind) {
      O.log.unhandled('Invalid entry.kind', entry.shard.alias, entry.id);
    }
  
    if (params.kind && (entry.kind.name !== params.kind)) return false;
  
    if (params.filter) {  // TODO dval structure is not known at entry place
      if (params.filter.master && entry.dval.master !== params.filter.master) return false;
      if (params.filter.parent && entry.dval.parent !== params.filter.parent) return false;
    }
  
    if (entry.kind.matchQuery) {
      return entry.kind.matchQuery(entry, name, params);
    }
  
    return true;
  }
docs: Private {{{1