docs: public static Index getPrimaryKeyIndex(Table catalogTable) throws Exception {
  
          // We first need to find the pkey constraint
          Constraint catalog_constraint = null;
          for (Constraint c : catalogTable.getConstraints()) {
              if (c.getType() == ConstraintType.PRIMARY_KEY.getValue()) {
                  catalog_constraint = c;
                  break;
              }
          }
          if (catalog_constraint == null) {
              throw new Exception("ERROR: Table '" + catalogTable.getTypeName() + "' does not have a PRIMARY KEY constraint");
          }
  
          // And then grab the index that it is using
          return (catalog_constraint.getIndex());
      }