EmployeeHistoric employeeHistoric = getEmployee(teacher);
IEmployeeHistoric employeeHistoric = getEmployee(teacher);
	public IDepartment readByTeacher(Integer teacherId) throws ExcepcaoPersistencia {        // TODO: Remove this call after refactoring teacher...        // teacher.getEmployee();		ITeacher teacher = (ITeacher)readByOID(Teacher.class, teacherId);        EmployeeHistoric employeeHistoric = getEmployee(teacher);        ICostCenter workingCC = employeeHistoric.getWorkingPlaceCostCenter();        List departmentList = null;        IDepartment department = null;        if (workingCC != null) {            String code = workingCC.getCode();            if (code != null && !(code.equals(""))) {                Criteria workingCCCriteria = new Criteria();                workingCCCriteria.addLike("code", code.substring(0, 2) + "%");                departmentList = queryList(Department.class, workingCCCriteria);            }            if (departmentList.size() != 1) {                Criteria criteria = new Criteria();                criteria.addEqualTo("code", code);                department = (IDepartment) queryObject(Department.class, criteria);            } else {                department = (IDepartment) departmentList.get(0);            }        }        return department;    }