public override IAction GetActionById(UInt32 id, List <UInt32> usedBranches) { if (usedBranches.Contains(this.BranchId)) { return(null); } usedBranches.Add(this.BranchId); if (_list != null) { return(_list.GetActionById(id, usedBranches)); } return(null); }