public void removeRepository(Repository repository){
  repository.preRemove();
  repository.removeRepositoryListener(repositoryListener);
  repositories.remove(repository);
  fireUpdate(null);
}

public void removeRepository ( Repository repository ) { repository . preRemove ( ) ; repository . removeRepositoryListener ( repositoryListener ) ; repositories . remove ( repository ) ; fireUpdate ( null ) ; }
removes a registered repository .
