Fixed compile failure due to changes in portal api