docs: protected IPortalCookie getPortalCookie(HttpServletRequest request) {
          final Cookie cookie = this.getCookieFromRequest(this.cookieName, request);
          if (cookie == null) {
              // check the session
              IPortalCookie portalCookieInSession = locatePortalCookieInSession(request.getSession());
              if (null != portalCookieInSession) {
                  return portalCookieInSession;
              }
  
              return null;
          }
  
          final String value = cookie.getValue();
          return this.portletCookieDao.getPortalCookie(value);
      }