Convert ArchitectGenerator to the new environnement manager