if (executionCourse.getExecutionPeriod() == selectedExecutionPeriod) {
if (executionCourse.getExecutionPeriod() == selectedExecutionPeriod && attend.getEnrolment() != null) {
    private Attends findFirstAttends(final HttpServletRequest request, final ExecutionPeriod selectedExecutionPeriod) throws FenixFilterException, FenixServiceException {        for (final Student student : getUserView(request).getPerson().getStudents()) {            for (final Attends attend : student.getOrderedAttends()) {                final ExecutionCourse executionCourse = attend.getDisciplinaExecucao();                if (executionCourse.getExecutionPeriod() == selectedExecutionPeriod) {                    return attend;                }            }        }        return null;    }