XWIKI-8794: Get rid of Portlet API in oldcore