if (whenDegreeIsExecuted.contains(whenDegreeIsExecuted)) {
if (whenDegreeIsExecuted.contains(currentExecutionYear)) {
    private ExecutionYear getExecutionYearToShow(HttpServletRequest request, Degree degree) throws FenixActionException {        Integer executionDegreeId = getFromRequest("executionDegreeID", request);        if (executionDegreeId != null) {            // coordinator call            request.setAttribute("executionDegreeID", executionDegreeId);                        ExecutionDegree executionDegree = rootDomainObject.readExecutionDegreeByOID(executionDegreeId);            if (executionDegree == null || !executionDegree.getDegreeCurricularPlan().getDegree().equals(degree)) {                throw new FenixActionException();            }                        return executionDegree.getExecutionYear();        } else {            final ExecutionYear currentExecutionYear = ExecutionYear.readCurrentExecutionYear();                        List<ExecutionYear> whenDegreeIsExecuted = degree.getDegreeCurricularPlansExecutionYears();            final ExecutionYear firstExecutionYear = whenDegreeIsExecuted.get(0);            final ExecutionYear lastExecutionYear = whenDegreeIsExecuted.get(whenDegreeIsExecuted.size() - 1);                        if (whenDegreeIsExecuted.contains(whenDegreeIsExecuted)) {                return currentExecutionYear;            } else {                if (currentExecutionYear.isBefore(firstExecutionYear)) {                    return firstExecutionYear;                } else {                    return lastExecutionYear;                }            }        }    }