static public PagesConfiguration GetInstance (HttpContext context) { if (context == null) context = HttpContext.Current; if (context == null) return null; return context.GetConfig ("system.web/pages") as PagesConfiguration; } }