What if the app to run is not Spark?
It looks like you're assigning a spark app ID anyway.