What'd be the use of returning appId?
I'd say to return `void`.

Cruft of not throwing any exception before …