private static HttpContext GetContext() { var context = HttpContext.Current; if (context == null) { Logger.Debug("No HTTPContext, returning"); } return context; }