CFY-1373 use new ctx api for checking whether context is a deployment one