private void doExecute(Runnable r) { try { r.run(); } catch (JavaScriptException jse) { if (jse.isThrownSet()) { LOG.severe("Caught JavaScriptException, wrapped error is: " + jse.getThrown()); } ThrowableHandlers.handle(jse); } catch (Throwable t) { ThrowableHandlers.handle(t); } }