Setting alliance in simulation

I’m using the WPI simulation and I’d like to be able to have it start as the blue alliance each time it launches. Is there a property I can set somewhere to make this happen? Saving the workspace doesn’t seem to save this setting.

It is not saved by the GUI, but you can set it via robot code. Add the following line to your Robot.simulationInit() function:

DriverStationSim.setAllianceStationId(AllianceStationID.Blue1);

This isn’t working for me.
If I put this code in simulationInit I can see it runs in the debugger but my alliance stays at RED1.

But if I put the code in a periodic like disabledPeriodic then the alliance changes to Blue1

It’s almost as if the simulator is fully up and running when the code is executed in simulationInit so the simulator doesn’t actually respond to it.