code: public void addRepository(Repository repo) throws GreenPepperServerException
      {
          if (findRepositoryByName(repo.getName()) != null)
          {
              throw new GreenPepperServerException( GreenPepperServerErrorKey.REPOSITORY_ALREADY_EXISTS, "Repository already exists");
          }
  
          repo.setProject(this);
          repositories.add(repo);
      }
docs: <p>addRepository.</p>
  
  @param repo a {@link com.greenpepper.server.domain.Repository} object.
  @throws com.greenpepper.server.GreenPepperServerException if any.