code: public List<Execution> getSpecificationExecutions(Specification specification, SystemUnderTest sut, int maxResults)
  	{
  		final Criteria crit = sessionService.getSession().createCriteria(Execution.class);
  		
  		crit.add(Restrictions.eq("specification.id", specification.getId()));
  
  		if (sut != null)
  		{
  			crit.createAlias("systemUnderTest", "sut");
  			crit.add(Restrictions.eq("sut.name", sut.getName()));
  		}
  
  		/*
  		crit.add(Restrictions.or(Restrictions.or(Restrictions.not(Restrictions.eq("errors", 0)),
  												 Restrictions.not(Restrictions.eq("success", 0))),
  								 Restrictions.or(Restrictions.not(Restrictions.eq("ignored", 0)),
  												 Restrictions.not(Restrictions.eq("failures", 0)))));
  		*/
  
  		crit.addOrder(Order.desc("executionDate"));
  		crit.setMaxResults(maxResults);
  
  		@SuppressWarnings("unchecked")
  		List<Execution> executions = crit.list();
  		HibernateLazyInitializer.initCollection(executions);
  		Collections.reverse(executions);
  		return executions;
  	}
docs: {@inheritDoc}