public void Add(ServiceVariable variable) { // TODO -- have to do more on naming too var index = AllFor(variable.Instance).Length + 1; if (index > 1) { variable.OverrideName(variable.Usage + "_" + index); } _cached.Add(variable); }