internal static Context GetContext() { Context cx = GetCurrentContext(); if (cx == null) { throw new Exception("No Context associated with current Thread"); } return cx; }