Object[] argsReadStudent = { userView.getUtilizador() }; student = (InfoStudent) ServiceManagerServiceFactory.executeService(userView, "ReadStudentByUsername", argsReadStudent); Object[] argsReadCandidacies = { student.getIdInternal() };
Object[] argsReadCandidacies = { userView.getPerson() };
    public List setCurrentCandidaciesInfo(ActionMapping mapping, HttpServletRequest request,            IUserView userView) throws FenixActionException {        List currentCandidacies = null;        InfoStudent student = null;        try {            Object[] argsReadStudent = { userView.getUtilizador() };            student = (InfoStudent) ServiceManagerServiceFactory.executeService(userView,                    "ReadStudentByUsername", argsReadStudent);            Object[] argsReadCandidacies = { student.getIdInternal() };            currentCandidacies = (List) ServiceManagerServiceFactory.executeService(userView,                    "Seminaries.GetCandidaciesByStudentID", argsReadCandidacies);        } catch (Exception e) {            throw new FenixActionException();        }        return currentCandidacies;    }