code: public static String findCookieValue(HttpServletRequest request, String name) {
          Cookie cookie = findCookie(request, name);
          return cookie != null ? cookie.getValue() : null;
      }
docs: find cookie value
  @param request current request
  @param name cookie name
  @return cookie value