/*
  * Recupère la question et ses réponses selon le profil de l'utilisateur courant, ainsi que ses
  * destinataires met la question en session
  */
 public Question getQuestion(long questionId) throws QuestionReplyException {
   Question question = getQuestionManager().getQuestion(questionId);
   setCurrentQuestion(question);
   question.writeRecipients(getQuestionManager().getQuestionRecipients(questionId));
   question.writeReplies(getRepliesForQuestion(questionId));
   return question;
 }
 /*
  * initialise les destinataires de la question à créer
  */
 public void setNewQuestionRecipients(Collection<String> userIds) {
   Collection<Recipient> recipients = new ArrayList<Recipient>();
   if (userIds != null) {
     Iterator<String> it = userIds.iterator();
     while (it.hasNext()) {
       String userId = it.next();
       Recipient recipient = new Recipient(userId);
       recipients.add(recipient);
     }
   }
   newQuestion.writeRecipients(recipients);
 }