HtmlLink link = new HtmlLink(); link.setModuleRelative(false); link.setContextRelative(true);  link.setUrl(TinyMceEditor.CODE_PATH); HtmlScript sourceScript = new HtmlScript("text/javascript", link.calculateUrl(), true); parentTag.addChild(sourceScript.getOwnTag(context));
    public HtmlTag getOwnTag(PageContext context) {        HtmlTag parentTag = new HtmlTag(null);                HtmlScript script = new HtmlScript();        script.setContentType("text/javascript");        script.setScript(generateScript(context));        parentTag.addChild(script.getOwnTag(context));                HtmlTag tag = super.getOwnTag(context);        parentTag.addChild(tag);                return parentTag;    }