Add environment switch on war creation