code: @Override
    public void commit() throws IOException {
      try {
        LOG.info("Flushing pending insert.");
        this.commands.flush();
        LOG.info("Commiting transaction.");
        this.conn.commit();
      } catch (Exception e) {
        this.failed = true;
        throw new RuntimeException(e);
      }
    }
docs: Flushes JdbcWriterCommands and commit.
  {@inheritDoc}
  @see org.apache.gobblin.writer.DataWriter#commit()