if (experiment == null)
if (experiment == null || !usingExperiment)
  private boolean isResultFile(String filename) {    File thisFile = new java.io.File(filename);    // if no experiment, use default filter    if (experiment == null)       return new ResultsFileFilter().accept(thisFile);    SocietyComponent societyComponent = experiment.getSocietyComponent();    if (societyComponent != null) {      java.io.FileFilter fileFilter = societyComponent.getResultFileFilter();      if(fileFilter != null && fileFilter.accept(thisFile))        return true;    }    int nrecipes = experiment.getRecipeComponentCount();    for (int i = 0; i < nrecipes; i++) {      RecipeComponent recipeComponent = experiment.getRecipeComponent(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;  }