code: @Override
      public void addRemoteRepo(MavenRemoteRepository repository) {
          Builder builder = new Builder(repository.getId(), repository.getType(), repository.getUrl());
          builder.setPolicy(new RepositoryPolicy(true, repository.getUpdatePolicy() == null ? null : repository
                  .getUpdatePolicy().apiValue(), repository.getChecksumPolicy() == null ? null : repository
                  .getChecksumPolicy().apiValue()));
  
          for (RemoteRepository r : this.additionalRemoteRepositories) {
              if (r.getId().equals(repository.getId())) {
                  this.additionalRemoteRepositories.remove(r);
              }
          }
          this.additionalRemoteRepositories.add(builder.build());
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.resolver.api.maven.MavenWorkingSession#addRemoteRepo(MavenRemoteRepository)