code: @Override
      public InputStream openStream(org.eclipse.aether.artifact.Artifact artifact) throws IOException
      {
          XWikiRepositorySystemSession session = createRepositorySystemSession();
  
          List<RemoteRepository> repositories = newResolutionRepositories(session);
  
          // /////////////////////////////////////////////////////////////////////////////:
  
          ArtifactRequest artifactRequest = new ArtifactRequest();
          artifactRequest.setRepositories(repositories);
          artifactRequest.setArtifact(artifact);
  
          ArtifactResult artifactResult;
          try {
              RepositorySystem repositorySystem = getRepositorySystem();
              artifactResult = repositorySystem.resolveArtifact(session, artifactRequest);
          } catch (org.eclipse.aether.resolution.ArtifactResolutionException e) {
              throw new IOException("Failed to resolve artifact", e);
          }
  
          File aetherFile = artifactResult.getArtifact().getFile();
  
          return new AetherExtensionFileInputStream(aetherFile, false);
      }
docs: {@inheritDoc}
  <p>
  Override standard {@link #openStream(org.eclipse.aether.artifact.Artifact)} to reuse running Maven session which
  is much faster.
  
  @see org.xwiki.extension.repository.aether.internal.AetherExtensionRepository#openStream(org.eclipse.aether.artifact.Artifact)