protected WebContent CreateWebContent(string Url, string Path, bool Protected = false)
        {
            WebContent content = new WebContent() {
                Url = Url,
                Path = Path,
                Protected = Protected
            };

            content.Html = GetHtml(Path);

            return content;
        }
        protected ContentPage HandleWebContent(WebContent Item)
        {
            ContentCachePage master = GetCachePage();
            string html = DataHelper.UrlPrefix + Item.Path;
            SystemUser user = GetCurrentSystemUserFromCookie();

            if (Item.Protected && user == null) {
                html = "/Content/viewmodels/EmptyPage.html";
            }

            ContentPage page = new ContentPage() {
                Html = html,
                Data = null
            };

            master.Pages.Add(page);

            return page;
        }
        protected Response HandleWebContentHtml(Request req, WebContent item)
        {
            Response resp = null;

            if (item == null) {
                resp = new Response() {
                    Body = "Not found",
                    StatusCode = 404
                };
            } else if (item.Protected && GetCurrentSystemUserFromCookie() == null) {
                resp = new Response();
            } else {
                //resp = Handle.ResolveStaticResource(req.Uri, req);
                resp = new Response() {
                    Body = item.Html
                };

                Handle.AddOutgoingHeader("Content-Type", "text/html; charset=utf-8");
            }

            return resp;
        }