Employee employee = (Employee) input;
IEmployee employee = (IEmployee) input;
    public List readByDepartment(String departmentCode) throws ExcepcaoPersistencia {        List employees = getEmployees(departmentCode);        Collection teacherNumberList = CollectionUtils.collect(employees, new Transformer() {            public Object transform(Object input) {                Employee employee = (Employee) input;                return employee.getEmployeeNumber();            }        });        Criteria criteria = new Criteria();        criteria.addIn("teacherNumber", teacherNumberList);        return queryList(Teacher.class, criteria);    }