Follow-Up Bug of #2413.
Open feature requests:
- Split StateMachine.xml to Bundles, so that Bundles that need a StateMachine get it initialized automatically on activation.
- Clean up the State machines. This is actually a by-product of point one.
- Seperate EventMapper init from StateMachines (?)