code: public static Long getProfileLastModifiedCookie(HttpServletRequest request) {
          String profileLastModified = HttpUtils.getCookieValue(PROFILE_LAST_MODIFIED_COOKIE_NAME, request);
          if (StringUtils.isNotEmpty(profileLastModified)) {
              try {
                  return new Long(profileLastModified);
              } catch (NumberFormatException e) {
                  logger.error("Invalid profile last modified cookie format: {}", profileLastModified);
              }
          }
  
          return null;
      }
docs: Returns the last modified timestamp cookie from the request.
  
  @param request the request where to retrieve the last modified timestamp from
  
  @return the last modified timestamp of the authenticated profile