Add support for setting applicationId programatically