code: protected void publishRenderEvent(
              IPortletWindow portletWindow,
              HttpServletRequest httpServletRequest,
              RenderPart renderPart,
              long executionTime,
              boolean cached) {
  
          final IPortletWindowId portletWindowId = portletWindow.getPortletWindowId();
  
          // Determine if the portlet was targeted
          final IPortalRequestInfo portalRequestInfo =
                  this.urlSyntaxProvider.getPortalRequestInfo(httpServletRequest);
          final boolean targeted =
                  portletWindowId.equals(portalRequestInfo.getTargetedPortletWindowId());
  
          renderPart.publishRenderExecutionEvent(
                  this.portalEventFactory,
                  this,
                  httpServletRequest,
                  portletWindowId,
                  executionTime,
                  targeted,
                  cached);
      }
docs: Publish the portlet render event