code: private void addNewRepos(List<ArtifactoryRepo> repos, List<ArtifactoryRepo> existingRepos, ArtifactoryCollector collector) {
          long start = System.currentTimeMillis();
          int count = 0;
  
          List<ArtifactoryRepo> newRepos = new ArrayList<>();
          for (ArtifactoryRepo repo : repos) {
              ArtifactoryRepo existing = null;
              if (!CollectionUtils.isEmpty(existingRepos) && (existingRepos.contains(repo))) {
                  existing = existingRepos.get(existingRepos.indexOf(repo));
              }
  
              if (existing == null) {
                  repo.setCollectorId(collector.getId());
                  repo.setEnabled(false); // Do not enable for collection. Will be enabled later
                  repo.setDescription(repo.getRepoName());
                  newRepos.add(repo);
                  count++;
              }
          }
          //save all in one shot
          if (!CollectionUtils.isEmpty(newRepos)) {
              artifactoryRepoRepository.save(newRepos);
          }
          log("New repos", start, count);
      }
docs: Add any new {@link ArtifactoryRepo}s.
  
  @param repos         list of {@link ArtifactoryRepo}s
  @param existingRepos list of existing {@link ArtifactoryRepo}s
  @param collector     the {@link ArtifactoryCollector}