addRecipeToWorkspace(recipe, node);
addRecipeToWorkspace(recipe, getSelectedNode());
  private void newRecipe(DefaultMutableTreeNode node) {    Object[] values = metComboItems;    Object answer =      JOptionPane.showInputDialog(this, "Select Recipe Type",				  "Select Recipe",				  JOptionPane.QUESTION_MESSAGE,				  null,				  values,				  "Empty Recipe");				  //"Mo Recipe");    if (answer instanceof ComboItem) {      ComboItem item = (ComboItem) answer;      String name = recipeNames.generateName(item.name);      while (true) {	name = (String) JOptionPane.showInputDialog(this, "Enter Recipe Name",						    "Name Recipe",						    JOptionPane.QUESTION_MESSAGE,						    null, null,						    name);	if (name == null) return;	if (!recipeNames.contains(name)) break;	int ok = JOptionPane.showConfirmDialog(this,					       "Use an unique name",					       "Recipe Name Not Unique",					       JOptionPane.OK_CANCEL_OPTION,					       JOptionPane.ERROR_MESSAGE);	if (ok != JOptionPane.OK_OPTION) return;      }      try {	Constructor constructor = item.cls.getConstructor(constructorArgTypes);	RecipeComponent recipe =		  (RecipeComponent) constructor.newInstance(new String[] {name});	recipe.initProperties();	DefaultMutableTreeNode newNode =	  addRecipeToWorkspace(recipe, node);	workspace.setSelection(newNode);      } catch (Exception e) {	e.printStackTrace();      }    }  } // end of newRecipe