protected override Composite CreateBehavior() { return(new Sequence( new PrioritySelector( new Decorator(ret => Name != null, new Action(ret => TimeTracker.StopTimer(Name))), new Decorator(ret => Group != null, new Action(ret => TimeTracker.StopGroup(Group))) ), new Action(ret => _isDone = true) )); }