propUIC = addProperty(PROP_UIC, (aad.getUIC() != null) ? aad.getUIC() : "UIC/" + aad.getClusterID());
propUIC = addProperty(PROP_UIC, (aad.getUIC() != null) ? aad.getUIC() : "UIC/" + clusterName);
  public void initProperties() {    // strip off extension if it exists    int index = filename.indexOf('.');    if (index != -1)       filename = filename.substring(0, index);    // Since there are two possible types of asset files, we    // need to determine which parser to use.    // We will determine this by looking for the "UniqueId"    // in the <agent>-ini.dat file.    AgentAssetData aad = null;    if(FileParseUtil.isOldStyleIni(filename + "-prototype-ini.dat")) {      if(log.isDebugEnabled()) {        log.debug("Using oldStyle Parser");      }      aad = PrototypeParser.parse(filename);    } else {      if(log.isDebugEnabled()) {        log.debug("Using newStyle Parser");      }      AssetDataCallbackImpl callback = new AssetDataCallbackImpl();      AssetDataFileReader reader = new AssetDataFileReader();      reader.readAsset(filename, callback);      aad = callback.getAgentAssetData();    }    propAssetClass = addProperty(PROP_CLASS, aad.getAssetClass());    propAssetClass.setToolTip(PROP_CLASS_DESC);    String uniqueId = (aad.getUniqueID() != null) ? aad.getUniqueID() : "";    propUniqueID = addProperty(PROP_UID, uniqueId);    propUniqueID.setToolTip(PROP_UID_DESC);        // Unit name is allowed to be null, if it is, give an empty string.    String unitname = (aad.getUnitName() == null) ? "" : aad.getUnitName();    propUnitName = addProperty(PROP_UNITNAME, unitname);    propUnitName.setToolTip(PROP_UNITNAME_DESC);        propUIC = addProperty(PROP_UIC, (aad.getUIC() != null) ? aad.getUIC() : "UIC/" + aad.getClusterID());    propUIC.setToolTip(PROP_UIC_DESC);    addPropGroups(aad);    addRelationships(aad.getRelationshipData());  }