fix for android crash issue

Please take a look at it. 
This solution helps fsm to run well on Android. But I haven't tested the very functionality this managementService was added for. So, please, test it to be sure that I haven't broken anything.