protected override object DoGetInstance(Type serviceType, string key) { if (key == null) return container.GetInstance(serviceType); return container.GetInstance(serviceType, key); }