code: public static PropertySpec[] buildPropertySpecArray(String[][] typeProplists) {
          PropertySpec[] pSpecs = new PropertySpec[typeProplists.length];
  
          for (int i = 0; i < typeProplists.length; i++) {
              String type = typeProplists[i][0];
              String[] props = new String[typeProplists[i].length - 1];
              System.arraycopy(typeProplists[i], 1, props, 0, props.length);
  
              boolean all = (props.length == 0);
              pSpecs[i] = createPropertySpec(type, all, props);
          }
          return pSpecs;
      }
docs: This code takes an array of [typename, property, property, ...]
  and converts it into a PropertySpec[].
  
  @param typeProplists 2D array of type and properties to retrieve
  @return Array of container filter specs