createPeriodsForExecutionDegree(executionDegree);
    private static void createDegrees() {        final Person person = Person.readPersonByUsernameWithOpenedLogin("admin");        final ExecutionYear executionYear = ExecutionYear.readCurrentExecutionYear();        final Campus campus = RootDomainObject.getInstance().getCampussSet().iterator().next();        int i = 0;        for (final DegreeType degreeType : DegreeType.values()) {            ++i;            final GradeScale gradeScale = degreeType.getGradeScale();            final Degree degree;            final DegreeCurricularPlan degreeCurricularPlan;            if (degreeType.isBolonhaType()) {                degree = new Degree("Nome do Curso", "Degree Name", "CODE" + i, degreeType, 0d, gradeScale, null);                degreeCurricularPlan = degree.createBolonhaDegreeCurricularPlan("DegreeCurricularPlanName", gradeScale, person);                degreeCurricularPlan.setCurricularStage(CurricularStage.PUBLISHED);            } else {                degree = new Degree("Nome do Curso", "Degree Name", "CODE" + i, degreeType, gradeScale, DegreeCurricularPlan.class.getName());                degreeCurricularPlan = degree.createPreBolonhaDegreeCurricularPlan("DegreeCurricularPlanName", DegreeCurricularPlanState.ACTIVE,                        new Date(), null, degreeType.getYears(), Integer.valueOf(1), Double.valueOf(degreeType.getDefaultEctsCredits()),                        MarkType.TYPE20_OBJ, Integer.valueOf(100), null, gradeScale);                final Branch branch = new Branch("", "", "", degreeCurricularPlan);                branch.setBranchType(BranchType.COMNBR);                createPreBolonhaCurricularCourses(degreeCurricularPlan, i, executionYear, branch);            }            createDegreeInfo(degree);            degreeCurricularPlan.setDescription("Bla bla bla. Descrio do plano curricular do curso. Bla bla bla");            degreeCurricularPlan.setDescriptionEn("Blur ble bla. Description of the degrees curricular plan. Goo goo foo foo.");            final ExecutionDegree executionDegree = degreeCurricularPlan.createExecutionDegree(executionYear, campus, Boolean.FALSE);            final Teacher teacher = createTeachers(i);            new Coordinator(executionDegree, teacher.getPerson(), Boolean.TRUE);        }    }