protected EventBus newEventBus() {
return new EventBus(newEventBusSubscriberExceptionHandler());
}
protected SubscriberExceptionHandler newEventBusSubscriberExceptionHandler() {
return new SubscriberExceptionHandler(){
@Override
public void handleException(Throwable exception, SubscriberExceptionContext context) {
if(exception instanceof RecoverableException ||
exception instanceof NonRecoverableException) {
getTransactionManager().getTransaction().setAbortCause(new IsisApplicationException(exception));