code: private void commit() {
          try {
              // Execute any remaining batch inserts and commit the transaction.
              insertError.executeBatch();
              insertInfo.executeBatch();
              connection.commit();
          } catch (SQLException ex) {
              throw new StorageException(ex);
          }
      }
docs: This executes any remaining inserts and commits the transaction.