regimenToReturn = regimen; break;
return regimen;
    public TeacherLegalRegimen getLastLegalRegimen(){        Date date = null;        TeacherLegalRegimen regimenToReturn = null;        for (TeacherLegalRegimen regimen : this.getLegalRegimens()) {            if (regimen.isActive(Calendar.getInstance().getTime())) {                regimenToReturn = regimen;                break;            } else if (date == null || date.before(regimen.getEndDate())) {                date = regimen.getEndDate();                regimenToReturn = regimen;            }        }        return regimenToReturn;    }