code: @Override
      public boolean add(RepositoryConnection repoConnection) {
          boolean ret = super.add(repoConnection);
          if (repoConnection instanceof RestRepositoryConnection) {
              ((RestRepositoryConnection) repoConnection).setUserAgent(_userAgent);
          }
          return ret;
      }
docs: Adds a new RepositoryConnection - the userAgent of this collection will automatically be pushed into
  the connection if it is a RestRepositoryConnection {@inheritDoc}