for (int i = 0; i < data.childCount(); i++) { if (children[i].getName().equals(MetricsInitializerPlugIn_name)) return children[i];
while(!children[0].getType().equals(ComponentData.AGENT)) { children = children[0].getChildren();
  private ComponentData findInitializer(ComponentData data) {    // Find the plugin with the Metrics initializer plugin    ComponentData[] children = data.getChildren();    for (int i = 0; i < data.childCount(); i++) {      if (children[i].getName().equals(MetricsInitializerPlugIn_name))	return children[i];    }    return null;  }