private void generateGroupRowWithText(final HtmlTable mainTable, final String text, boolean addHeaders, final int level) {
final HtmlTableRow groupRow = mainTable.createRow();
groupRow.setClasses(getHeaderRowClass());
final HtmlTableCell textCell = groupRow.createCell();
textCell.setText(text);
textCell.setClasses(getLabelCellClass());
textCell.setRowspan(2);
textCell.setColspan(MAX_COL_SPAN_FOR_TEXT_ON_CURRICULUM_LINES);
final HtmlTableCell averageCell = groupRow.createCell();
averageCell.setText("Média de Curso");
averageCell.setClasses(getGradeCellClass());
averageCell.setColspan(3);
final HtmlTableCell executionYearCell = groupRow.createCell();
executionYearCell.setText("Ano Lectivo");
executionYearCell.setClasses(getGradeCellClass());
executionYearCell.setColspan(2);
executionYearCell.setRowspan(2);
final HtmlTableRow groupSubRow = mainTable.createRow();
groupSubRow.setClasses(getHeaderRowClass());
generateCellWithText(groupSubRow, BundleUtil.getString(Bundle.APPLICATION, "label.grade"), getGradeCellClass());
generateCellWithText(groupSubRow, BundleUtil.getString(Bundle.APPLICATION, "label.weight"), getEctsCreditsCellClass());