public bool HasCapability(string capability) { if (Concept.BlackList.ContainsKey(capability)) { return(false); } if (Concept.HasCapability(capability)) { return(true); } foreach (var child in Node.Children.Values) { var ri = child.Get <ReferenceInterpreter>(); if (ri == null) { continue; } var cb = new ConceptBuilder(ri.Node); if (cb.HasCapability(capability)) { return(true); } } return(false); }