public override bool HasChildren(ItemDefinition itemDefinition, CallContext context) { #if DEBUG var timer = Stopwatch.StartNew(); #endif var hasChildren = HeadProvider.HasChildren(itemDefinition, context) || // speed optimization DoGetChildIDs(itemDefinition, context).Any(); #if DEBUG this.Trace(hasChildren, timer, itemDefinition, context); #endif return(hasChildren); }