Class type = throwable.getClass();
Throwable actual = unwrap(throwable); Class type = actual.getClass();
    public void handle(Throwable throwable,                       HttpServletRequest request,                       HttpServletResponse response) throws ServletException {        try {            Class type = throwable.getClass();            HandlerProxy proxy = null;            while (type != null && proxy == null) {                proxy = this.handlers.get(type);                type = type.getSuperclass();            }            if (proxy != null) {                proxy.handle(throwable, request, response);            }            else {                throw throwable;            }        }        catch (ServletException se) {            throw se;        }        catch (Throwable t) {            throw new StripesServletException("Unhandled exception in exception handler.", t);        }    }