List<RemoteRepository> (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; }