code: protected void executeBatchInsert(final PreparedStatement pstmt) {
      try {
        // Need a Callable interface to be wrapped by Retryer.
        this.retryer.wrap(new Callable<Boolean>() {
          @Override
          public Boolean call() throws Exception {
            return insertBatch(pstmt);
          }
        }).call();
      } catch (Exception e) {
        throw new RuntimeException("Failed to insert.", e);
      }
      resetBatch();
    }
docs: Submits the user defined {@link #insertBatch(PreparedStatement)} call to the {@link Retryer} which takes care
  of resubmitting the records according to {@link #WRITER_JDBC_INSERT_RETRY_TIMEOUT} and {@link #WRITER_JDBC_INSERT_RETRY_MAX_ATTEMPT}
  when failure happens.
  
  @param pstmt PreparedStatement object