public void handleError(Exception cause) throws Exception { payload.setErrorHandled(true); if (!payload.isHandleErrorCauseException()) { payload.setHandledErrorSuccessfully(true); } else { throw new Exception(); } }