for(int j=0; j < children.length; j++) { ComponentData[] plugins = children[j].getChildren(); for (int i = 0; i < plugins.length; i++) { if (plugins[i].getName().equals(MetricsInitializerPlugIn_name)) { return children[j]; } } }
  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;  }