}
public void initLanguages(String mainProgLangCode, String mainDbLangCode, String fallbackDbLangCode) {
try {
//JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean("JbsLanguagesBean");
JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean(JbsLanguagesRemote.class.getName());
this.setMainProgramLanguage(langRemote.findLanguage(mainProgLangCode));
this.setMainDbLanguage(langRemote.findLanguage(mainDbLangCode));
this.setFallbackDbLanguage(langRemote.findLanguage(fallbackDbLangCode));
} catch (Exception e) {
logger.error("Error setting language", e);
}
}