code: private void runBeginCommitHooks(EDBCommit commit) throws EDBException {
          for (EDBBeginCommitHook hook : beginCommitHooks) {
              try {
                  hook.onStartCommit(commit);
              } catch (ServiceUnavailableException e) {
                  // Ignore
              } catch (EDBException e) {
                  throw e;
              } catch (Exception e) {
                  logger.error("Error while performing EDBBeginCommitHook", e);
              }
          }
      }
docs: Runs all registered begin commit hooks on the EDBCommit object. Logs exceptions which occurs in the hooks, except
  for ServiceUnavailableExceptions and EDBExceptions. If an EDBException occurs, it is thrown and so returned to
  the calling instance.