docs: protected PortletRenderResult constructPortletRenderResult(
              HttpServletRequest httpServletRequest, long renderTime) {
          final String title =
                  (String) httpServletRequest.getAttribute(IPortletRenderer.ATTRIBUTE__PORTLET_TITLE);
          final String newItemCountString =
                  (String)
                          httpServletRequest.getAttribute(
                                  IPortletRenderer.ATTRIBUTE__PORTLET_NEW_ITEM_COUNT);
          final int newItemCount;
          if (newItemCountString != null && StringUtils.isNumeric(newItemCountString)) {
              newItemCount = Integer.parseInt(newItemCountString);
          } else {
              newItemCount = 0;
          }
          final String link =
                  (String) httpServletRequest.getAttribute(IPortletRenderer.ATTRIBUTE__PORTLET_LINK);
  
          return new PortletRenderResult(title, link, newItemCount, renderTime);
      }