code: @Override
      public ExtensionRepository createRepository(ExtensionRepositoryDescriptor repositoryDescriptor)
          throws ExtensionRepositoryException
      {
          try {
              return new XWikiExtensionRepository(repositoryDescriptor, this, this.licenseManager, this.httpClientFactory,
                  this.factory);
          } catch (Exception e) {
              throw new ExtensionRepositoryException("Failed to create repository [" + repositoryDescriptor + "]", e);
          }
      }
docs: ExtensionRepositoryFactory