code: public static final void commit(final Connection connection) {
          if (connection == null) {
              return;
          }
  
          try {
              connection.commit();
          } catch (Exception e) {
              if (LOG.isWarnEnabled()) LOG.warn("Error committing Connection: " + connection, e);
          }
      }
docs: Commit pending transactions. Unlike the underlying commit(), this method does not throw
  SQLException or any other exception. It will fail silently from the perspective of calling
  code, logging any errors using Commons Logging.
  
  @param connection