// do theme import if necessary
SharedTheme importTheme = null;
if(isImportTheme() && !StringUtils.isEmpty(getImportThemeId())) try {
ThemeManager themeMgr = WebloggerFactory.getWeblogger().getThemeManager();
importTheme = themeMgr.getTheme(getImportThemeId());
themeMgr.importTheme(getActionWeblog(), importTheme);
} catch(WebloggerException re) {
log.error("Error customizing theme for weblog - "+getActionWeblog().getHandle(), re);
// TODO: i18n
addError("Error importing theme");
}