Added setMainClass() call in the stub so that IAP, restores, and server push will work properly.