ViewContext countryLanguageViewContext = new ViewContext();
countryLanguageViewContext.setApp(app);
countryLanguageViewContext.setPage(page);
countryLanguageViewContext
.setWicketId("countryLanguageChoicePanel");
CountryLanguageChoicePanel countryLanguageChoicePanel = new CountryLanguageChoicePanel(
countryLanguageModelContext, countryLanguageViewContext);
add(countryLanguageChoicePanel);
if (!app.getModelConfig().isI18n()) {
countryLanguageChoicePanel.setVisible(false);
}
} catch (Exception e) {
log.error("Error in HomePageMenuPanel: " + e.getMessage());
}
}