resp.setContentType(uri.endsWith(COMPRESSED_EXT) ? "application/x-gzip" : "text/plain");
    public void doGet(HttpServletRequest req, HttpServletResponse resp)    throws IOException, ServletException {        Locale locale = req.getLocale();        String uri = req.getRequestURI();                resp.setContentType(uri.endsWith(COMPRESSED_EXT) ? "application/x-gzip" : "text/plain");        OutputStream out = resp.getOutputStream();        byte[] buffer = getBuffer(locale, uri);        out.write(buffer);        out.close();    } // doGet(HttpServletRequest,HttpServletResponse)