ComponentData[] children = data.getChildren(); String cname = data.getName() + "|" + getPluginClassName(); boolean addedparam = false; for (int i = 0; i < children.length; i++) { ComponentData kid = children[i]; if (kid.getName().equals(cname)) {  if (nParameters > 0 && ! addedparam) { cname = cname + "|" + getProperty(PROP_PARAM+0).getValue(); addedparam = true; } else {  cname = cname + children.length; } } } self.setName(cname);  data.addChildDefaultLoc(self);
  public ComponentData addComponentData(ComponentData data) {    data.setClassName(getPluginClassName());    for(int i=0; i < nParameters; i++) {      data.addParameter(getProperty(PROP_PARAM + i).getValue());    }    if(nParameters > 0) {      data.setName(getPluginClassName()+"|"+getProperty(PROP_PARAM+0).getValue());    } else {      data.setName(getPluginClassName());    }    return data;  }