docs: public static void commitAndClose(Connection conn) throws SQLException {
          if (conn != null) {
              try {
                  conn.commit();
              } finally {
                  conn.close();
              }
          }
      }