private static List<RemoteRepository> createRemoteRepositories(Collection<RemoteRepositoryDescription> repositoryDescriptions) {
      ArrayList<RemoteRepository> remotes = new ArrayList<>();
      for (RemoteRepositoryDescription repository : repositoryDescriptions) {
        ArtifactRepositoryManager.ArtifactAuthenticationData authData = obtainAuthenticationData(repository);
        remotes.add(
          ArtifactRepositoryManager.createRemoteRepository(repository.getId(), repository.getUrl(), authData, repository.isAllowSnapshots())
        );
      }
      return remotes;
    }
private static List<RemoteRepository> createRemoteRepositories(Collection<RemoteRepositoryDescription> repositoryDescriptions)