code: public static String getCookieValue(String name, Cookies cookies) {
          Cookie c = cookies.get(name);
          if (c != null) {
              return c.value();
          }
          return null;
      }
docs: Gets the value of the cookie having the given name. The cookie is looked from the given cookies set.
  
  @param name    the name of the cookie
  @param cookies the set of cookie
  @return the value of the cookie, {@literal null} if there are no cookie with the given name in the cookies set.