private IDictionary GetHttpContextRegistry() { var registry = HttpContext.Current.Items[Key] as IDictionary; if (registry == null) { registry = new Hashtable(); HttpContext.Current.Items[Key] = registry; } return registry; }