Adapted AnswerController to identify period by code (and not anymore by
Id)