{
TranslateBean translateBean;
final GeoServerApplication application = getGeoServerApplication();
translateBean = (TranslateBean) application.getMetaData(TRANSLATION_BEAN);
if (translateBean == null) {
TranslationController controller = getController();
Map<Locale, Map<String, String>> translatedResources;
translatedResources = controller.getTranslatedResources();
// default locale is keyed by null
Locale baseLocale = null;
translateBean = new TranslateBean(baseLocale, translatedResources);
application.setMetaData(TRANSLATION_BEAN, translateBean);