public TransactionType GetOrCreateNew(string name) { if (string.IsNullOrWhiteSpace(name)) { return null; } return this.transactionTypes.GetOrAdd(name, n => new NamedTransaction(n)); } }