PersistenceBroker broker = null;  Query query = new QueryByCriteria(DisciplinaExecucao.class, null);
Criteria crit = new Criteria(); crit.addEqualTo("executionPeriod.name","1 Semestre"); crit.addEqualTo("executionPeriod.executionYear.year","2003/2004"); Query query = new QueryByCriteria(DisciplinaExecucao.class, crit);
	private List loadFenixExecutionCourses() {		List fenixExecutionCourses = null;		PersistenceBroker broker = null;		Query query = new QueryByCriteria(DisciplinaExecucao.class, null);		try {			broker = PersistenceBrokerFactory.defaultPersistenceBroker();			// ask the broker to retrieve the Extent collection			fenixExecutionCourses = (List) broker.getCollectionByQuery(query);			broker.close();		} catch (Throwable t) {			t.printStackTrace();		}		return fenixExecutionCourses;	}