strBuffer.append("<a href='siteViewer.do?method=roomViewer&amp;roomName=") .append(lesson.getInfoRoomOccupation().getInfoRoom().getNome()).append( "&amp;objectCode=").append( lesson.getInfoShift().getInfoDisciplinaExecucao().getInfoExecutionPeriod() .getIdInternal()).append("&amp;executionPeriodOID=").append( lesson.getInfoShift().getInfoDisciplinaExecucao().getInfoExecutionPeriod() .getIdInternal()).append("'>").append( lesson.getInfoRoomOccupation().getInfoRoom().getNome()).append("</a>");
strBuffer.append("<a href='siteViewer.do?method=roomViewer&amp;roomName="); strBuffer.append(lesson.getInfoRoomOccupation().getInfoRoom().getNome()).append( "&amp;objectCode="); strBuffer.append(lesson.getInfoShift().getInfoDisciplinaExecucao().getInfoExecutionPeriod() .getIdInternal()); strBuffer.append("&amp;executionPeriodOID="); strBuffer.append( lesson.getInfoShift().getInfoDisciplinaExecucao().getInfoExecutionPeriod() .getIdInternal()).append("'>"); strBuffer.append(lesson.getInfoRoomOccupation().getInfoRoom().getNome()).append("</a>");
    public StringBuffer render(LessonSlot lessonSlot) {        StringBuffer strBuffer = new StringBuffer();        //InfoLesson lesson =        // lessonSlot.getInfoLessonWrapper().getInfoLesson();        InfoShowOccupation showOccupation = lessonSlot.getInfoLessonWrapper().getInfoShowOccupation();        if (showOccupation instanceof InfoLesson) {            InfoLesson lesson = (InfoLesson) showOccupation;            strBuffer.append(lesson.getTipo()).append("&nbsp;");            strBuffer.append("<a href='siteViewer.do?method=roomViewer&amp;roomName=")                    .append(lesson.getInfoRoomOccupation().getInfoRoom().getNome()).append(                            "&amp;objectCode=").append(                            lesson.getInfoShift().getInfoDisciplinaExecucao().getInfoExecutionPeriod()                                    .getIdInternal()).append("&amp;executionPeriodOID=").append(                            lesson.getInfoShift().getInfoDisciplinaExecucao().getInfoExecutionPeriod()                                    .getIdInternal()).append("'>").append(                            lesson.getInfoRoomOccupation().getInfoRoom().getNome()).append("</a>");            //TODO(rspl): Will it stay like this the interface for showing            // it is a quinzenal lesson?            if (lesson.getInfoRoomOccupation().getFrequency().intValue() == RoomOccupation.QUINZENAL) {                strBuffer.append("&nbsp;&nbsp;[Q]");            }        } else {            InfoExam infoExam = (InfoExam) showOccupation;            for (int iterEC = 0; iterEC < infoExam.getAssociatedExecutionCourse().size(); iterEC++) {                InfoExecutionCourse infoEC = (InfoExecutionCourse) infoExam                        .getAssociatedExecutionCourse().get(iterEC);                if (iterEC != 0) {                    strBuffer.append(", ");                }                strBuffer.append(infoEC.getSigla());            }            strBuffer.append(" - ");            strBuffer.append(infoExam.getSeason().getSeason());            strBuffer.append(" poca");        }        return strBuffer;    }