pg.setType(getType(prop));
String type = getType(prop);      if ((prop.getValue() != null) && (prop.getValue().getClass().isArray() || Collection.class.isAssignableFrom(prop.getValue().getClass()))) { pg.setSubType(type); pg.setType("Collection"); } else {  pg.setType(type); }
  public PropGroupData getPropGroupData() {        PropGroupData pgData = new PropGroupData(this.getShortName());        for(int i=0; i < propProperties.length; i++) {          Property prop = propProperties[i];          PGPropData oldPG = getProp(getName(prop));          PGPropData pg = new PGPropData();          if(oldPG != null) {            pg.setName(oldPG.getName());            pg.setType(oldPG.getType());            pg.setSubType(oldPG.getSubType());          } else {            pg.setName(getName(prop));            pg.setType(getType(prop));          }          pg.setValue(prop.getValue());          pgData.addProperty(pg);        }        return pgData;  }