public List readProfessorShipsExecutionCourses(String whoTeaches) throws ExcepcaoPersistencia {
public List readProfessorShipsExecutionCourses(Integer teacherNumber) throws ExcepcaoPersistencia {
     public List readProfessorShipsExecutionCourses(String whoTeaches) throws ExcepcaoPersistencia {        try {            ITeacher teacher = null;            String oqlQuery = "select teacher from " + Teacher.class.getName();            oqlQuery += " where username = $1";            query.create(oqlQuery);            query.bind(whoTeaches);            List result = (List) query.execute();            lockRead(result);            if (result.size() != 0)                teacher = (ITeacher) result.get(0);            else                return new ArrayList();            return teacher.getProfessorShipsExecutionCourses();        } catch (Exception ex) {            throw new ExcepcaoPersistencia(ExcepcaoPersistencia.QUERY, ex);        }    }