I\'m creating a HSM (hierachical state machine) to control an application UI state (ie. which UI elements should be visible at a given time, etc).
Each state should r