/// <summary>
        /// Handles the channels.
        /// </summary>
        /// <typeparam name="T">
        /// The generic type.
        /// </typeparam>
        /// <param name="currentPage">
        /// The current Page.
        /// </param>
        public static void UseActiveChannel <T>(T currentPage) where T : PageData
        {
            HttpContextWrapper httpContext = new HttpContextWrapper(HttpContext.Current);

            if (httpContext.IsJsonDisplayModeActive())
            {
                OutputHelper.HandleJson(currentPage);
            }

            if (httpContext.IsXmlDisplayModeActive())
            {
                OutputHelper.HandleXml(currentPage);
            }

            if (httpContext.IsTxtDisplayModeActive())
            {
                OutputHelper.HandleTxt(currentPage);
            }

            if (httpContext.IsPdfDisplayModeActive())
            {
                OutputHelper.HandlePdf(currentPage);
            }
        }