def METHOD_NAME(self, name: str, offline: bool = False):
    if name in self.__repositories:
        repo = self.__repositories[name]
        return repo["cls"](repo["url"], repo["index"], offline=offline)
    logging.error(f"Repository {name} not found")