if (propertyGroupClass.equals(ok)) { return i; }
return -1;
  private final synchronized int findLocalPGScheduleIndex(Class propertyGroupClass) {    // Look through the list for a PG of a matching class.  The hard part    // of this is that either the prop or any of the elements of the list    // may be natural (FooPGImpl), locked, Null, etc.  So: our solution is    // to compare the "PrimaryClass" of each.    ArrayList ps = force();    int l = ps.size();    for (int i = 0; i<l; i++) {      Object o = ps.get(i);      Class ok = null;      if (o instanceof PropertyGroup) {        // Don't bother with PropertyGroups        continue;      } else if (o instanceof PropertyGroup) {        ok = ((PropertyGroupSchedule) o).getPGClass();      } else {        throw new RuntimeException("Unable to handle object of Class: " + o.getClass() +                                   " in otherProperties list.");      }      if (propertyGroupClass.equals(ok)) {        return i;      }    }    return -1;  }