code: public void setUserAgent(String userAgent) {
          _userAgent = userAgent;
          for (RepositoryConnection repoConnection : this) {
              if (repoConnection instanceof RestRepositoryConnection) {
                  ((RestRepositoryConnection) repoConnection).setUserAgent(_userAgent);
              }
          }
      }
docs: This object is used to hold a collection of {@link RepositoryConnection} objects, calling
  this method will set the userAgent into ALL the RestRepositoryConnection objects in the collection.
  
  @param userAgent The userAgent to put into the first LoginInfoEntry in the collection