} catch (FenixServiceException e) {
} catch (NotAuthorizedException e) { shiftsAndGroups = new InfoSiteShiftsAndGroups(); shiftsAndGroups.setInfoSiteGroupsByShiftList(new ArrayList()); }catch (FenixServiceException e) {
    public String buildInfo(Integer curricularCourseID, String username, String password) {        String result = new String();        if (username == null)            return new String();        try {            Object argsAutenticacao[] = { username, password, "" };            IUserView userView = (IUserView) ServiceManagerServiceFactory.executeService(null,                    "Autenticacao", argsAutenticacao);            InfoSiteProjects projects = null;            try {                projects = (InfoSiteProjects) ServiceUtils.executeService(userView,                        "teacher.ReadExecutionCourseProjects", new Integer[] { curricularCourseID });            } catch (FenixServiceException e) {                e.printStackTrace();                throw new FenixActionException(e);            }            if (projects == null)                return new String("-1");            for (Iterator iterProjects = projects.getInfoGroupPropertiesList().iterator(); iterProjects                    .hasNext();) {                InfoGroupProperties project = (InfoGroupProperties) iterProjects.next();                if (project != null) {                    InfoSiteShiftsAndGroups shiftsAndGroups = null;                    try {                        shiftsAndGroups = (InfoSiteShiftsAndGroups) ServiceUtils.executeService(                                userView, "ReadShiftsAndGroups",                                new Integer[] { project.getIdInternal() });                    } catch (FenixServiceException e) {                        e.printStackTrace();                        throw new FenixActionException(e);                    }                    List shiftsAndGroupsList = shiftsAndGroups.getInfoSiteGroupsByShiftList();                    for (Iterator iter = shiftsAndGroupsList.iterator(); iter.hasNext();) {                        InfoSiteGroupsByShift infoSiteShiftAndGroups = (InfoSiteGroupsByShift) iter                                .next();                        for (Iterator iterator2 = infoSiteShiftAndGroups.getInfoSiteStudentGroupsList()                                .iterator(); iterator2.hasNext();) {                            InfoSiteStudentGroup infoSiteStudentGroup = (InfoSiteStudentGroup) iterator2                                    .next();                            for (Iterator iterator3 = infoSiteStudentGroup                                    .getInfoSiteStudentInformationList().iterator(); iterator3.hasNext();) {                                InfoSiteStudentInformation infoSiteStudentInformation = (InfoSiteStudentInformation) iterator3                                        .next();                                if (username.equalsIgnoreCase(infoSiteStudentInformation.getUsername())) {                                    result = projects.getInfoExecutionCourse().getNome() + " ( ";                                    int counter = 0;                                    for (Iterator iteratorCurricularCourses = projects.getInfoExecutionCourse()                                            .getAssociatedInfoCurricularCourses().iterator(); iteratorCurricularCourses                                            .hasNext();) {                                        InfoCurricularCourse infoCurricularCourse = (InfoCurricularCourse) iteratorCurricularCourses                                                .next();                                        if (counter > 0)                                            result += ",";                                        result += infoCurricularCourse.getInfoDegreeCurricularPlan()                                                .getName();                                        counter++;                                    }                                    result += " )\n";                                    result += project.getName() + "\n";                                    int remainingStudents = project.getMaximumCapacity().intValue();                                    for (Iterator iteratorWritingResult = infoSiteStudentGroup                                            .getInfoSiteStudentInformationList().iterator(); iteratorWritingResult                                            .hasNext();) {                                        InfoSiteStudentInformation studentInfo = (InfoSiteStudentInformation) iteratorWritingResult                                                .next();                                        result += studentInfo.getNumber();                                        Object[] args = {                                                new UserView(studentInfo.getUsername(), new ArrayList()),                                                TipoCurso.LICENCIATURA_OBJ };                                        InfoStudentCurricularPlan infoStudentCurricularPlan = null;                                        try {                                            infoStudentCurricularPlan = (InfoStudentCurricularPlan) ServiceUtils                                                    .executeService(                                                            userView,                                                            "ReadActiveStudentCurricularPlanByDegreeType",                                                            args);                                        } catch (FenixServiceException e) {                                            e.printStackTrace();                                            throw new FenixActionException(e);                                        }                                        result += "-"                                                + infoStudentCurricularPlan                                                        .getInfoDegreeCurricularPlan().getName() + "\n";                                        remainingStudents--;                                    }                                    while (remainingStudents > 0) {                                        result += "N/A\n";                                        remainingStudents--;                                    }                                    result += infoSiteStudentGroup.getInfoStudentGroup()                                            .getGroupNumber()                                            + "\n"                                            + infoSiteStudentGroup.getInfoStudentGroup().getInfoShift()                                                    .getNome() + "\n";                                    for (Iterator iteratorLessons = infoSiteStudentGroup                                            .getInfoStudentGroup().getInfoShift().getInfoLessons()                                            .iterator(); iteratorLessons.hasNext();) {                                        InfoLesson infoLesson = (InfoLesson) iteratorLessons.next();                                        result += infoLesson.getDiaSemana().toString() + " "                                                + infoLesson.getInicio().get(Calendar.HOUR_OF_DAY);                                        int minute = infoLesson.getInicio().get(Calendar.MINUTE);                                        result += ":";                                        if (minute < 10)                                            result += "0";                                        result += minute + "\n\n";                                    }                                }                            }                        }                    }                } else                    return new String();            }        } catch (Exception e) {            e.printStackTrace();            result = "-1";        }        return result;    }