Bug Report: application.onAppStart
If LoadVars.sendAndLoad is used from within application.onAppStart and if LoadOnStartup is true in Application.xml, then the application will crash when the server is restarted, and won't load up. It appears that onAppStart isn't the best place to put startup code, since the FMS server isn't completely initialized at that point? This requires fixing.
Workaround: used setInterval() to execute a function 2 seconds after onAppStart and put my initialization stuff in there (the init stuff requires sendAndLoad because it calls an API on a web server that does some database initialization).
Bug tested on FMIS 3.5.2
