MainApplicationClass will be null, if it is booted from SpringBootServletInitializer. So we need to set it properly. Fixes gh-425
MainApplicationClass will be null, if it is booted from SpringBootServletInitializer. So we need to set it properly. Fixes gh-425