/**
   * @param repository
   * @return
   * @see java.util.List#add(java.lang.Object)
   */
  public boolean addRepository(Repository repository) {

    boolean result = this.repositories.add(repository);
    for (IRepositoryChangeListener listener : this.listeners) listener.repositoryAdded(repository);

    // storeSources();
    return result;
  }
  /**
   * @param repository
   * @return
   * @see java.util.List#remove(java.lang.Object)
   */
  public boolean removeRepository(Repository repository) {

    boolean result = this.repositories.remove(repository);
    for (IRepositoryChangeListener listener : this.listeners)
      listener.repositoryRemoved(repository);

    repository.releaseResource();
    // storeSources();
    return result;
  }
  /** @param repository */
  public void updateRepository(Repository repository) {

    // repository.refreshServiceUnitList();
    for (IRepositoryChangeListener listener : this.listeners)
      listener.repositoryChanged(repository);
  }