if(epi instanceof ERDErrorPageInterface && e instanceof Throwable) { ((ERDErrorPageInterface)epi).setException((Exception)e); }
    public WOComponent errorPageForException(Throwable e, WOSession s) {        myCheckRules();        ErrorPageInterface epi=D2W.factory().errorPage(s);        epi.setMessage(ERXUtilities.stackTrace(e));        epi.setNextPage(s.context().page());        return (WOComponent)epi;    }