private void updateStateWaiting(List<Keyword> keywords, List<String> terms) {
if (keywords!= null && !keywords.isEmpty()) {
for (Keyword kw : keywords) {
if (kw.getWord().equals("ingredient") || kw.getWord().equals("ingredients")) {
newObjectClass = Ingredient.class;
}
if (kw.getWord().equals("tool") || kw.getWord().equals("tools")) {
newObjectClass = Tool.class;
}
}
if (newObjectClass != null) {
getCurrentDialogState().setCurrentState(KitchenAssistance.KA_WAITING_FOR_LOCATION);
}
}
else {
DialogManager.giveDialogManager().setInErrorState(true);
}
}