doFilter((HttpServletRequest) req, (HttpServletResponse) res, chain);
}
protected void doFilter(HttpServletRequest req, HttpServletResponse res, FilterChain chain) throws IOException,
ServletException {
Device device = Device.lookup(req);
req.setAttribute(Device.KEY, device);
MobileResponse response = new MobileResponse(res, device);
chain.doFilter(req, response);
response.flushBuffer();
}