CORE-5314: Corrected issue with dupe apps on save
Abstracted the "new app id" to a constant on the App bean itself.