pg.setName(getName(prop)); pg.setType(getType(prop));
if(oldPG != null) { pg.setName(oldPG.getName()); pg.setType(oldPG.getType()); pg.setSubType(oldPG.getSubType()); } else { pg.setName(getName(prop)); pg.setType(getType(prop)); }
  public PropGroupData getPropGroupData() {        PropGroupData pgData = new PropGroupData(this.getShortName());            for(int i=0; i < propProperties.length; i++) {          Property prop = propProperties[i];          PGPropData pg = new PGPropData();          pg.setName(getName(prop));          pg.setType(getType(prop));          pg.setValue(prop.getValue());          pgData.addProperty(pg);        }        return pgData;  }