Add API for stateMachineConfig (getStateMachineForState)