docs: private static List<List<Object>> calculateKeys(ResultSet keys) throws SQLException {
          // Prepare a list to contain the auto-generated column
          // values, and then fetch them from the statement.
          List<List<Object>> autoKeys = new ArrayList<List<Object>>();
          int count = keys.getMetaData().getColumnCount();
  
          // Copy the column values into a list of a list.
          while (keys.next()) {
              List<Object> rowKeys = new ArrayList<Object>(count);
              for (int i = 1; i <= count; i++) {
                  rowKeys.add(keys.getObject(i));
              }
  
              autoKeys.add(rowKeys);
          }
          return autoKeys;
      }