ECMS-4816: Update the way to get popup window