shiftsToUnEnroll = (List) CollectionUtils.select(shiftEnrollments, new Predicate() {  public boolean evaluate(Object arg0) { ITurnoAluno shiftStudent = (ITurnoAluno) arg0; final Integer idToCompare = shiftStudent.getShift() .getIdInternal(); if (CollectionUtils.exists(shiftIdsToEnroll, new Predicate() {  public boolean evaluate(Object arg0) { return idToCompare.equals(arg0); } })) { return false; } else { return true; }  } });
return shiftEnrollments;
    private void calculateShiftsToUnEnroll(final List shiftIdsToEnroll,            List shiftEnrollments, List shiftsToUnEnroll)    {        shiftsToUnEnroll = (List) CollectionUtils.select(shiftEnrollments,                new Predicate()                {                    public boolean evaluate(Object arg0)                    {                        ITurnoAluno shiftStudent = (ITurnoAluno) arg0;                        final Integer idToCompare = shiftStudent.getShift()                                .getIdInternal();                        if (CollectionUtils.exists(shiftIdsToEnroll,                                new Predicate()                                {                                    public boolean evaluate(Object arg0)                                    {                                        return idToCompare.equals(arg0);                                    }                                }))                        {                            return false;                        }                        else                        {                            return true;                        }                    }                });    }