code: protected PortletRequestInfoImpl getTargetedPortletRequestInfo(
              final PortalRequestInfoImpl portalRequestInfo,
              final PortletRequestInfoImpl targetedPortletRequestInfo,
              final IPortletWindowId targetedPortletWindowId) {
  
          if (targetedPortletWindowId == null) {
              return targetedPortletRequestInfo;
          }
  
          return portalRequestInfo.getPortletRequestInfo(targetedPortletWindowId);
      }
docs: If the targetedPortletWindowId is not null {@link
  IPortalRequestInfo#getPortletRequestInfo(IPortletWindowId)} is called and that value is
  returned. If targetedPortletWindowId is null targetedPortletRequestInfo is returned.