private void updateStateRecipeName(List<Keyword> keywords, List<String> terms) {
	RecipeLearningState nextState;
	//TODO recipe already exists
	if (terms.size() > 0) {
		//I doubt that this code will work, what if last dialog was RA but the user just wants to teach the robot
		//a new recipe -> further modification needed here. I reset it to last stable version.
		//Bla, working now, more flags added, yay hacks
		if (DialogManager.giveDialogManager().getPreviousDialog().getClass().equals(RecipeAssistanceDialog.class)
				&& ((RecipeAssistanceDialog)DialogManager.giveDialogManager().getPreviousDialog()).isTeaching()) {
		if (((RecipeAssistanceDialog)DialogManager.giveDialogManager().getPreviousDialog()).getRecipeName() != null) {
				recipeName = ((RecipeAssistanceDialog)DialogManager.giveDialogManager().getPreviousDialog()).getRecipeName();
		}

		}
		else {
			recipeName = terms.get(0);
		}
		
		
		nextState = new RecipeLearningState();
		nextState.setCurrentState(RecipeLearning.RL_ASK_COUNTRY_OF_ORIGIN);
		setCurrentDialogState(nextState);
	}
	//theoretically never happens
	else {
		//TODO how to extract it from more than one word, keywords vergleich?
		DialogManager.giveDialogManager().setInErrorState(true);
	}
}