if (mustBeLogged(exception)) {
log.log(Level.SEVERE, "exception in environment block:"+exception.getMessage(), exception);
}
WireContext wireContext = (WireContext) defaultEnvironment.getBlockContext();
wireContext.fire(DefaultEnvironment.EVENT_EXCEPTION, this);
}
protected boolean mustBeLogged(Throwable exception) {
if (hiddenExceptionTypes==null) {
return true;