ResourceBundle bundle = ResourceBundle .getBundle("ServidorApresentacao.PublicDegreeInformation",locale);
    private StringBuffer legenda(List listaAulas,Locale locale) {        ResourceBundle bundle = ResourceBundle        .getBundle("ServidorApresentacao.PublicDegreeInformation",locale);                StringBuffer result = new StringBuffer("");        List listaAuxiliar = new ArrayList();        Iterator iterator = listaAulas.iterator();        while (iterator.hasNext()) {            InfoShowOccupation elem = (InfoShowOccupation) iterator.next();            if (elem instanceof InfoLesson) {                SubtitleEntry subtitleEntry = new SubtitleEntry(elem.getInfoShift()                        .getInfoDisciplinaExecucao().getSigla(), elem.getInfoShift()                        .getInfoDisciplinaExecucao().getNome());                if (!listaAuxiliar.contains(subtitleEntry))                    listaAuxiliar.add(subtitleEntry);            }        }        if (listaAuxiliar.size() > 1) {            Collections.sort(listaAuxiliar);            result.append("<br/><b>");            result.append(bundle.getString("label.legend"));            result.append("</b><br /><br /><table cellpadding='0' cellspacing='0' style='margin-left:5px'>");            for (int i = 0; i < listaAuxiliar.size(); i++) {                SubtitleEntry elem = (SubtitleEntry) listaAuxiliar.get(i);                boolean oddElement = (i % 2 == 1);                if (!oddElement) {                    result.append("<tr>\r\n");                }                result.append("<td width='60px'><b>");                result.append(elem.getKey());                result.append("</b></td><td  style='vertical-align:top'>-</td><td wrap='wrap'>");                result.append(elem.getValue());                result.append("</td>");                if (oddElement) {                    result.append("</tr>\r\n");                }            }            if (listaAuxiliar.size() % 2 == 1) {                result.append("<td colspan='3'>&nbsp;</td></tr>");            }            //TODO(rspl): Will it stay like this the interface for showing            // the legend of a quinzenal lesson?            result.append("<tr><td style='vertical-align:top'><b>[Q]</b></td>");            result.append("<td  style='vertical-align:top'>-</td>");            result.append("<td wrap='wrap'>" );            result.append( bundle.getString("label.biweekly"));            result.append("</td></tr>");            result.append("</table>");        }        return result;    }