/** * Handles a runtime exception, trying to delegate it to the exception handler * if any. * * @param ex * the runtime exception. */ protected void handleException(RuntimeException ex) { if (getExceptionHandler() != null && getExceptionHandler().handleException(ex, Collections.<String, Object>emptyMap())) { return; } throw ex; }