+ public String getTitle(final Locale locale) {
+ return localeToTitle.get(locale);
+ }
+
+ private void initializeLocalizedTitles(final String... titles) {
+ final Locale[] locales = getLocaleOrder();
+ if (locales.length != titles.length)
+ throw new RuntimeException("There should be exactly "
+ + locales.length + " title(s).");