private void init(UserRequest ureq, Component tmComponent) {
// add dom id for wrapper div
tmContainer.contextPut("domId", domId);
glossHelpJs = new JSAndCSSComponent("glossHelpJs", this.getClass(), new String[] { "glossaryhelper.js" }, "textmarker.css", true);
tmContainer.put("glossHelpJs", glossHelpJs);
glossHLJS = new JSAndCSSComponent("glossHLJS", this.getClass(), new String[] { "glossaryhighlighter.js" }, null, true);
tmContainer.put("glossHLJS", glossHLJS);
String glossFolderString = ((LocalFolderImpl)glossaryFolder).getBasefile().toString();
tmContainer.contextPut("glossaryFolder", glossFolderString.replace("/", "."));
tmContainer.contextPut("glossaryDefinitionMapperPath", glossaryDefinitionMapperPath);