if((element.getExecutionYear().equals(year)) && (element.getSemester() == semester))
if((element.getExecutionYear().getYear().equals(year)) && (element.getSemester() == semester))
    public IExecutionPeriod readBySemesterAndExecutionYear(Integer semester, String year) throws ExcepcaoPersistencia {                if(year == null)            return null;              List executionPeriods = readAllExecutionPeriod();           for (Iterator iter = executionPeriods.iterator(); iter.hasNext();) {            ExecutionPeriod element = (ExecutionPeriod) iter.next();            if((element.getExecutionYear().equals(year)) && (element.getSemester() == semester))                return element;        }                return null;    }