displayExperiments(rc);
CSMART.getOrganizer().displayExperiments(rc);
  private void saveToDatabase(boolean silently) {    if (configComponent instanceof RecipeComponent) {      try {        RecipeComponent rc = (RecipeComponent) configComponent;        PDbBase pdb = new PDbBase();        switch (pdb.recipeExists(rc)) {        case PDbBase.RECIPE_STATUS_EXISTS:          if (silently)            return; // don't need to save, don't say anything          JOptionPane.showMessageDialog(this,                                        "The recipe is already in the database with the same values.",                                        "Write Not Needed",                                        JOptionPane.INFORMATION_MESSAGE);          return;        case PDbBase.RECIPE_STATUS_DIFFERS:          // save the recipe, so workspace is consistent with database          break;        case PDbBase.RECIPE_STATUS_ABSENT:          break;                // Just write it        }        rc.saveToDatabase();        if (!silently)          JOptionPane.showMessageDialog(this,                                        "Recipe written successfully.",                                        "Recipe Written",                                        JOptionPane.INFORMATION_MESSAGE);        displayExperiments(rc);        //        updateExperiments(rc);      } catch (Exception sqle) {        if(log.isErrorEnabled()) {          log.error("Exception", sqle);        }        JOptionPane.showMessageDialog(this,                                      "An exception occurred writing the recipe to the database",                                      "Error Writing Database",                                      JOptionPane.ERROR_MESSAGE);      }    }  }