@Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
            ServletException {
        Locale locale = request.getLocale();
        AbstractMessages.setLocale(locale);
        try {
            chain.doFilter(request, response);
        } finally {
            AbstractMessages.clearLocale();
        }
    }
@see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
common/servlet/src/main/java/io/apiman/common/servlet/LocaleFilter.java