HUE-1559 [core] app registry should truncate and overwrite