private String getSubmissionOptionsHtmlForRankingOptions(int rankGiven) {
    StringBuilder result = new StringBuilder();

    ElementTag option = PageData.createOption("", "", rankGiven == Const.INT_UNINITIALIZED);
    result.append(
        "<option" + option.getAttributesToString() + ">" + option.getContent() + "</option>");
    for (int i = 1; i <= options.size(); i++) {
      option = PageData.createOption(String.valueOf(i), String.valueOf(i), rankGiven == i);
      result.append(
          "<option" + option.getAttributesToString() + ">" + option.getContent() + "</option>");
    }

    return result.toString();
  }