return (Attends) CollectionUtils.find(getAttends(), new Predicate() {  public boolean evaluate(Object o) { Attends attends = (Attends) o; return attends.getAluno().equals(student); }  });
for (final Attends attends : getAttendsSet()) { if (attends.getAluno() == student) { return attends; } } return null;
    public Attends getAttendsByStudent(final Student student) {        return (Attends) CollectionUtils.find(getAttends(), new Predicate() {            public boolean evaluate(Object o) {                Attends attends = (Attends) o;                return attends.getAluno().equals(student);            }        });    }