Judgment of the Court (Third Chamber) of 13 October 2022.#NY v Herios SARL.#Request for a preliminary ruling from the Cour de cassation.#Reference for a preliminary ruling – Directive 86/653/EEC – Article 17(2)(a) – Self-employed commercial agents – Termination of the agency contract by the principal – Compensation of the agent – Goodwill indemnity – Sub-agency – Right of the subagent to a proportion of the goodwill indemnity payable to the main agent corresponding to the customers brought by the subagent.#Case C-593/21.