is this is a typo? (checking for `origApp != null` and then calling method on `newApp`)