code: @Override
      public OptionalThing<Cookie> getCookie(String key) {
          assertKeyNotNull(key);
          final Cookie[] cookies = getRequest().getCookies();
          if (cookies != null) {
              for (Cookie cookie : cookies) {
                  if (key.equals(cookie.getName())) {
                      return OptionalThing.of(createSnapshotCookie(cookie));
                  }
              }
          }
          return OptionalThing.ofNullable(null, () -> {
              throw new CookieNotFoundException("Not found the cookie by the key: " + key);
          });
      }
docs: -----