/**
  * Take the next question, and ask it. the ID of the question will be remembered, and is available
  * through a getter.
  */
 public void askQuestion() {
   FeedbackQuestion nextQuestion = this.feedbackQueue.remove();
   lastQuestionId = nextQuestion.getId();
   lastKind = nextQuestion.getKind();
   //        server.printLine(nextQuestion.getQuestion());
   String instructions = instructions(nextQuestion.getKind());
   if (!instructions.isEmpty()) {
     //            server.printLine(instructions);
   }
 }
  /**
   * Take the next feedback questions, arrange them so that text-questions are last, and ask the
   * first question.
   *
   * @param feedbackQuestions the questions that will be asked.
   * @param feedbackUrl the url where feedback answers should be sent to.
   */
  public void feedback(List<FeedbackQuestion> feedbackQuestions, String feedbackUrl) {
    this.feedbackQueue.clear();

    for (FeedbackQuestion question : feedbackQuestions) {
      if (!question.getKind().equals("text")) {
        this.feedbackQueue.add(question);
      }
    }

    for (FeedbackQuestion question : feedbackQuestions) {
      if (question.getKind().equals("text")) {
        this.feedbackQueue.add(question);
      }
    }

    this.feedbackUrl = feedbackUrl;
  }