Collections.sort(executionDegrees, new Comparator() {
    public boolean isFirstYear() {        List<IExecutionDegree> executionDegrees = this.getDegreeCurricularPlan().getExecutionDegrees();        Collections.sort(executionDegrees, new Comparator() {            public int compare(Object o1, Object o2) {                IExecutionDegree executionDegree1 = (IExecutionDegree) o1;                IExecutionDegree executionDegree2 = (IExecutionDegree) o2;                return executionDegree1.getExecutionYear().getYear().compareTo(                        executionDegree2.getExecutionYear().getYear());            }        });        if (executionDegrees.get(executionDegrees.size() - 1).equals(this)) {            return true;        }        return false;    }