@NotNull
  protected List<ArtifactRepository> map2ArtifactRepositories(List<MavenRemoteRepository> repositories) {
    PlexusContainer container = getContainer();
    List<ArtifactRepository> result = new ArrayList<>();
    for (MavenRemoteRepository each : repositories) {
      try {
        ArtifactRepositoryFactory factory = getComponent(ArtifactRepositoryFactory.class);
        result.add(ProjectUtils.buildArtifactRepository(Maven3ModelConverter.toNativeRepository(each), factory, container));
      }
      catch (InvalidRepositoryException e) {
        MavenServerGlobals.getLogger().warn(e);
      }
    }
    return result;
  }
@NotNull
  protected List<ArtifactRepository> map2ArtifactRepositories(List<MavenRemoteRepository> repositories)