code: @SuppressWarnings("unchecked")
  	public List<Repository> getAll(String projectName)
      {
          final Criteria crit = sessionService.getSession().createCriteria(Repository.class);
          if (projectName != null)
          {
              crit.createAlias("project", "p");
              crit.add(Restrictions.eq("p.name", projectName));
          }
          List<Repository> list = crit.list();
  		HibernateLazyInitializer.initCollection(list);
  		return list;
  	}
docs: {@inheritDoc}