deleteAllRoomOccupations();
    protected void setAttributesAndAssociateRooms(Date day, Date beginning, Date end,            List<ExecutionCourse> executionCoursesToAssociate,            List<CurricularCourseScope> curricularCourseScopesToAssociate, List<Room> rooms,            OccupationPeriod period) {        checkValidHours(beginning, end);        this.setDayDate(day);        this.setBeginningDate(beginning);        this.setEndDate(end);        this.getAssociatedExecutionCourses().addAll(executionCoursesToAssociate);        this.getAssociatedCurricularCourseScope().addAll(curricularCourseScopesToAssociate);        if (rooms != null) {            associateRooms(rooms, period);        }    }