return executionDegrees.contains(executionDegree); } catch (ExcepcaoPersistencia e) { return false; } catch (Exception e) { return false; }
ITeacher coordinator = persistentTeacher.readTeacherByUsername(id.getUtilizador()); List executionDegrees = persistentExecutionDegree.readByTeacher(coordinator);  return executionDegrees.contains(executionDegree);
    protected boolean verifyCondition(IUserView id, Integer objectId) {        try {            ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            IPersistentExecutionDegree persistentExecutionDegree = sp.getIPersistentExecutionDegree();            IPersistentTeacher persistentTeacher = sp.getIPersistentTeacher();            IExecutionDegree executionDegree = (IExecutionDegree) persistentExecutionDegree.readByOID(                    ExecutionDegree.class, objectId);            ITeacher coordinator = persistentTeacher.readTeacherByUsername(id.getUtilizador());            List executionDegrees = persistentExecutionDegree.readByTeacher(coordinator);            return executionDegrees.contains(executionDegree);        } catch (ExcepcaoPersistencia e) {            return false;        } catch (Exception e) {            return false;        }    }