Translate the following English sentence to French:
"It was therefore necessary to find some means of maintaining links between Switzerland and the EU."
Il a donc fallu trouver un moyen de maintenir des liens entre la Suisse et l' UE.