if (Constants.BUILD_ID_URL_SUPPORT) {
if (getVersionSupport()) {
    protected void doGet(HttpServletRequest request,            HttpServletResponse response) throws IOException {        String uri = request.getRequestURI();        String contextPath = request.getContextPath();        if (contextPath != null) {            uri = uri.substring(contextPath.length());        }        String servletPath = request.getServletPath();        if (servletPath != null) {            uri = uri.substring(servletPath.length());        }        int idx = uri.indexOf('/');        if (idx >= 0) {            uri = uri.substring(idx + 1);        }        Locale locale = null;        String version = null;        if (Constants.BUILD_ID_URL_SUPPORT) {            idx = uri.indexOf('/');            if (idx < 0) {                response.setStatus(HttpServletResponse.SC_NOT_FOUND);                return;            }            version = uri.substring(0, idx);            uri = uri.substring(idx + 1);        }        URIParameters up = URIParameters.parseURI(uri);        if (up != null) {            if (localeSupport) {                String localeName = up.getLocaleName();                if (localeName != null) {                    locale = convertLocaleName(localeName, true);                }            }            if (version == null) {                version = up.getVersion();            }            uri = up.getURI();        }        if (version != null) {            String repositoryVersion = repository.getVersion();            if (repositoryVersion != null) {                if (repositoryVersion.equals(version) == false) {                    LOG.error("Not same repository version ! (current="                            + repositoryVersion + " request=" + version + ")");                    setNoCache(response);                    response.setStatus(HttpServletResponse.SC_CONFLICT);                    return;                }            }        }        IFile file = repository.getFileByURI(uri);        if (file == null) {            setNoCache(response);            response.setStatus(HttpServletResponse.SC_NOT_FOUND);            return;        }        Record record = getFileRecord(file, locale);        sendRecord(request, response, record);    }