main.put("updatecontrol", jsc);
// configure new message sound
newMsgIcon.contextPut("iconsHolder", showNewMessageHolder);
Theme guiTheme = getWindowControl().getWindowBackOffice().getWindow().getGuiTheme();
String newMessageSoundURL = guiTheme.getBaseURI() + "/sounds/new_message.wav";
File soundFile = new File(WebappHelper.getContextRoot() + "/themes/" + guiTheme.getIdentifyer() + "/sounds/new_message.wav");
if (!soundFile.exists()) {
// fallback to default theme when file does not exist in configured theme
newMessageSoundURL = newMessageSoundURL.replace("/themes/" + guiTheme.getIdentifyer(), "/themes/default");
}
newMsgIcon.contextPut("newMessageSoundURL", newMessageSoundURL);
notifieNewMsgPanel = new Panel("newMsgPanel");
notifieNewMsgPanel.setContent(newMsgIcon);