add management of ecore in the generation file "main"