public override void Execute(IReadOnlyCollection <Component> instanceComponents) { CodeTreeComponent componentToConfigure = instanceComponents.OfType <CodeTreeComponent>().SingleOrDefault(c => c.Id == ComponentId); if (componentToConfigure != null) { Logger.Instance.Log(LogLevel.Info, "\tSetup configuration for '{0}' component", ComponentId); string pathToConfigTemplates = string.IsNullOrWhiteSpace(PathToConfigTemplates) ? componentToConfigure.PathToCodeTreeTemplates : PathToConfigTemplates; componentToConfigure.SetupCodeTreeTemplates(pathToConfigTemplates); } }