Original Portal upgrade code from PWA for 3.3 Flex version