strBuffer.append(bundle.getString("label.as"));
strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.as"));
    public StringBuffer renderDayContents(ExamsMapSlot examsMapSlot, Integer year1, Integer year2,            String typeUser,Locale locale) {        StringBuffer strBuffer = new StringBuffer();        ResourceBundle bundle = ResourceBundle        .getBundle("ServidorApresentacao.PublicDegreeInformation",locale);        for (int i = 0; i < examsMapSlot.getExams().size(); i++) {            InfoExam infoExam = (InfoExam) examsMapSlot.getExams().get(i);            Integer curicularYear = infoExam.getInfoExecutionCourse().getCurricularYear();            if (curicularYear.equals(year1) || curicularYear.equals(year2)) {                boolean isOnValidWeekDay = onValidWeekDay(infoExam);                InfoExecutionCourse infoExecutionCourse = infoExam.getInfoExecutionCourse();                String courseInitials = infoExam.getInfoExecutionCourse().getSigla();                if (typeUser.equals("sop")) {                    strBuffer.append("<a href='showExamsManagement.do?method=edit&amp;"                            + SessionConstants.EXECUTION_COURSE_OID + "="                            + infoExecutionCourse.getIdInternal() + "&amp;"                            + SessionConstants.EXECUTION_PERIOD_OID + "="                            + infoExecutionCourse.getInfoExecutionPeriod().getIdInternal() + "&amp;"                            + SessionConstants.EXECUTION_DEGREE_OID + "="                            + examsMap.getInfoExecutionDegree().getIdInternal() + "&amp;"                            + SessionConstants.CURRICULAR_YEAR_OID + "=" + curicularYear.toString()                            + "&amp;" + SessionConstants.EXAM_OID + "=" + infoExam.getIdInternal()                            + "'>");                    if (isOnValidWeekDay) {                        strBuffer.append(courseInitials);                    } else {                        strBuffer.append("<span class='redtxt'>" + courseInitials + "</span>");                    }                } else if (typeUser.equals("public")) {                    strBuffer.append("<a href='viewSite.do?method=firstPage&amp;objectCode="                            + infoExecutionCourse.getIdInternal()                            + "&amp;executionPeriodOID="                            + infoExecutionCourse.getInfoExecutionPeriod().getIdInternal()                            + "&amp;degreeID="                            + examsMap.getInfoExecutionDegree().getInfoDegreeCurricularPlan()                                    .getInfoDegree().getIdInternal()                            + "&amp;"                            + SessionConstants.EXECUTION_COURSE_OID                            + "="                            + infoExecutionCourse.getIdInternal()                            + "&amp;executionDegreeID="                            + examsMap.getInfoExecutionDegree().getIdInternal()                            + "&amp;degreeCurricularPlanID="                            + examsMap.getInfoExecutionDegree().getInfoDegreeCurricularPlan()                                    .getIdInternal() + "'>");                    strBuffer.append(courseInitials);                }                strBuffer.append("</a>");                if (infoExam.getBeginning() != null) {                    boolean isAtValidHour = atValidHour(infoExam);                    String hoursText = infoExam.getBeginning().get(Calendar.HOUR_OF_DAY) + "h"                            + DateFormatUtils.format(infoExam.getBeginning().getTime(), "mm");                    strBuffer.append(" ");                    strBuffer.append(bundle.getString("label.as"));                    strBuffer.append(" ");                                    if (isAtValidHour || !typeUser.equals("sop")) {                        strBuffer.append(hoursText);                    } else {                        strBuffer.append("<span class='redtxt'>" + hoursText + "</span>");                    }                }                strBuffer.append("<br />");            }        }        strBuffer.append("<br />");        return strBuffer;    }