code: public RepositoryType getTypeByName(String repositoryTypeName)
      {
          final Criteria crit = sessionService.getSession().createCriteria(RepositoryType.class);
          crit.add(Property.forName("name").eq(repositoryTypeName));
          RepositoryType repositoryType = (RepositoryType) crit.uniqueResult();
  		HibernateLazyInitializer.init(repositoryType);
  		return repositoryType;
  	}
docs: {@inheritDoc}