sumCredits += degreeModule.getEctsCredits();
sumCredits += ((CurricularCourse)degreeModule).getEctsCredits(context.getCurricularPeriod().getOrder());
    private List<Double> encodeCurricularCourses(List<Context> contexts) throws IOException {        double sumContactLoad = 0.0;        double sumAutonomousWork = 0.0;        double sumTotalLoad = 0.0;        double sumCredits = 0.0;        for (Context context : contexts) {            DegreeModule degreeModule = context.getDegreeModule();            if (degreeModule instanceof CurricularCourse) {                sumContactLoad += ((CurricularCourse)degreeModule).getContactLoad(context.getCurricularPeriod().getOrder());                sumAutonomousWork += ((CurricularCourse)degreeModule).getAutonomousWorkHours(context.getCurricularPeriod().getOrder());                sumTotalLoad += ((CurricularCourse)degreeModule).getTotalLoad(context.getCurricularPeriod().getOrder());                sumCredits += degreeModule.getEctsCredits();                new UICurricularCourse((CurricularCourse) degreeModule, context, this.toEdit, this.showRules).encodeBegin(facesContext);            }        }                List<Double> result = new ArrayList<Double>(4);        result.add(sumContactLoad);        result.add(sumAutonomousWork);        result.add(sumTotalLoad);        result.add(sumCredits);                return result;    }