code: public ExtensionRepositoryDescriptor getExtensionRepositoryDescriptor(String id, String type, URI uri)
      {
          return getExtensionRepositoryDescriptor(new DefaultExtensionRepositoryDescriptor(id, type, uri));
      }
docs: Store and return a weak reference equals to the passed {@link ExtensionRepositoryDescriptor} elements.
  
  @param id the unique identifier
  @param type the repository type (maven, xwiki, etc.)
  @param uri the repository address
  @return unique instance of {@link ExtensionRepositoryDescriptor} equals to the passed one