invoke(new Runnable() {
public void run() {
try {
chain.doFilter(req, resp);
} catch (IOException e) {
throw new WrappedException(e);
} catch (ServletException e) {
throw new WrappedException(e);
}
}
});
} catch (WrappedException e) {
Throwable wrapped = e.getCause();