addTeachers(teachers, this.getWorkingEmployees(begin, end));
List<Employee> employees = this.getWorkingEmployees(begin, end); for (Employee employee : employees) { Teacher teacher = employee.getPerson().getTeacher(); if (teacher != null && !teacher.getAllLegalRegimensBelongsToPeriod(begin, end).isEmpty()) { teachers.add(teacher); } }
    public List<Teacher> getTeachers(Date begin, Date end) {        List teachers = new ArrayList();        addTeachers(teachers, this.getWorkingEmployees(begin, end));        return teachers;    }