private IPublisher GetCreatePublisher(string publisher) { publisher = Trim(publisher, 50); IPublisher ipub; if (_publishersCache.TryGetValue(publisher, out ipub)) { return(ipub); } ipub = _session.NewPublisher(publisher); _publishersCache.Add(publisher, ipub); return(ipub); }