TeacherLegalRegimen regimen = getLastLegalRegimenWithoutSpecialSituations();
TeacherLegalRegimen regimen = getLastLegalRegimenWithoutEndSituations();
    public Category getCategory() {        TeacherLegalRegimen regimen = getLastLegalRegimenWithoutSpecialSituations();        if (regimen != null) {            return regimen.getCategory();        }        return null;    }