panel.setDocument(doc, ref.toString());
    public void loadPage(String url_text, XHTMLPanel panel)            throws Exception {        Document doc = null;        URL ref = null;        if (url_text.startsWith("demo:")) {            Uu.p("starts with demo");            DemoMarker marker = new DemoMarker();            Uu.p("url text = " + url_text);            String short_url = url_text.substring(5);            if (!short_url.startsWith("/")) {                short_url = "/" + short_url;            }            Uu.p("short url = " + short_url);            ref = marker.getClass().getResource(short_url);            Uu.p("ref = " + ref);            doc = XMLResource.load(marker.getClass().getResourceAsStream(short_url)).getDocument();        } else if (url_text.startsWith("http")) {            doc = XMLResource.load(new URL(url_text)).getDocument();            ref = new File(url_text).toURL();        } else {            doc = XMLResource.load(new URL(url_text)).getDocument();            ref = new File(url_text).toURL();        }        Uu.p("ref = " + ref);        Uu.p("url_text = " + url_text);        panel.setDocument(doc, ref.toString());    }