} else if (throwable instanceof com.webobjects.eocontrol._private.TokenMgrError) {   shouldQuit = false;
    public void handlePotentiallyFatalException(Exception exception) {        Throwable throwable = null;        if (exception instanceof InvocationTargetException) {            throwable = ((InvocationTargetException)exception).getTargetException();        } else if (exception instanceof NSForwardException ) {            throwable = ((NSForwardException)exception).originalException();        }        if (throwable instanceof Error) {            boolean shouldQuit = true;            if (throwable instanceof OutOfMemoryError) {                // We first log just in case the log4j call puts us in a bad state.                NSLog.err.appendln("Ran out of memory, killing this instance");                log.error("Ran out of memory, killing this instance");            } else if (throwable instanceof NoClassDefFoundError) {                shouldQuit = false;            } else if (throwable instanceof StackOverflowError) {                // hm. could we do something reasonable here?                shouldQuit = false;            } else {                // We first log just in case the log4j call puts us in a bad state.                NSLog.err.appendln("java.lang.Error \"" + throwable.getClass().getName() + "\" occured. Can't recover, I'm killing this instance.");                log.error("java.lang.Error \"" + throwable.getClass().getName() + "\" occured. Can't recover, I'm killing this instance.");            }            if(shouldQuit)                Runtime.getRuntime().exit(1);        }    }