plugin.setParent(this);
plugin.setParent(data);
public ComponentData addComponentData(ComponentData data) {//     data.setType(ComponentData.AGENT);//     data.setName(getFullName().toString());//     data.setClassName(agentClassName);//     data.setOwner(this);//     data.setParent(getParent());    // Add Asset Data PlugIn    GenericComponentData plugin = new GenericComponentData();    plugin.setType(ComponentData.PLUGIN);    plugin.setParent(this);    plugin.setName(AssetDataPlugIn_name);    data.addChild(plugin);    // Add Asset Report PlugIn    plugin = new GenericComponentData();    plugin.setType(ComponentData.PLUGIN);    plugin.setParent(this);    plugin.setName(AssetReportPlugIn_name);    data.addChild(plugin);    if(getFullName().toString().equals(getProperty(PROP_INITIALIZER).getValue())) {      ABCPlugIn init = new ABCPlugIn("MetricsInitializer", MetricsInitializerPlugIn_name);      addChild(init);      init.initProperties();      addPropertyAlias(init, getProperty(PROP_NUMBPROVIDERS));      addPropertyAlias(init, getProperty(PROP_SAMPLEINTERVAL));      addPropertyAlias(init, getProperty(PROP_STARTDELAY));      addPropertyAlias(init, getProperty(PROP_MAXNUMBSAMPLES));      data.addChild(init.addComponentData(new GenericComponentData()));    }    for(int i = 0 ; i < getChildCount(); i++) {      if(getChild(i) instanceof ABCPlugIn) {	ABCPlugIn pg = (ABCPlugIn) getChild(i);	data.addChild(pg.addComponentData(new GenericComponentData()));      }	    }    plugin = new GenericComponentData();    plugin.setType(ComponentData.PLUGIN);    plugin.setParent(this);    plugin.setName(PlanServerPlugIn_name);    data.addChild(plugin);    // Add data file leaves.    data = createLeafComponents(data);    // Add Time Phased Data.    data = addTimePhasedData(data);    return data;  }