idx += PATTERN.length(); int idx2 = surl.indexOf(".", idx);
idx += LOCALE_CLASS_PATTERN.length(); int idx2 = surl.indexOf('.', idx);
    public IContent getContent(URL url, Locale locale) {        String surl = url.toString();        int idx = surl.lastIndexOf(PATTERN);        if (idx >= 0) {            idx += PATTERN.length();            int idx2 = surl.indexOf(".", idx);            surl = surl.substring(0, idx) + "xx" + surl.substring(idx2);            try {                url = new URL(surl);            } catch (MalformedURLException ex) {                LOG.error("Can not reformat url to '" + surl + "' !", ex);                return null;            }        }        return new FilteredContent(url, locale);    }