+ 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).");
+
+ for (int i = 0; i < titles.length; i++)
+ localeToTitle.put(locales[i], titles[i]);
+ }
+
+ public boolean matchesUrl(final String url) {
+ return WildCardMatcher.match(url, matchingPattern);
+ }