RecipeComponent recipeComponent = experiment.getRecipe(i);
RecipeComponent recipeComponent = experiment.getRecipeComponent(i);
  private boolean isResultFile(String filename) {    File thisFile = new java.io.File(filename);    SocietyComponent societyComponent = experiment.getSocietyComponent();    if (societyComponent != null) {      java.io.FileFilter fileFilter = societyComponent.getResultFileFilter();      if(fileFilter != null && fileFilter.accept(thisFile))	return true;    }    int nrecipes = experiment.getRecipeCount();    for (int i = 0; i < nrecipes; i++) {      RecipeComponent recipeComponent = experiment.getRecipe(i);      if (recipeComponent instanceof MetricComponent) {        MetricComponent metricComponent = (MetricComponent) recipeComponent;        java.io.FileFilter fileFilter = metricComponent.getResultFileFilter();        if (fileFilter != null && fileFilter.accept(thisFile))          return true;      }    }    return false;  }