code: public Repository getByName(String projectName, String repositoryName)
      {
         final Criteria crit = sessionService.getSession().createCriteria(Repository.class);
          crit.add(Property.forName("name").eq(repositoryName));
          crit.createAlias("project", "p");
          crit.add(Restrictions.eq("p.name", projectName));
  		Repository repository = (Repository)crit.uniqueResult();
  		HibernateLazyInitializer.init(repository);
  		return repository;
      }
docs: {@inheritDoc}