code: @Override
      public Optional<WSCookie> getCookie(String name) {
          for (Cookie ahcCookie : ahcResponse.getCookies()) {
              // safe -- cookie.getName() will never return null
              if (ahcCookie.name().equals(name)) {
                  return Optional.of(asCookie(ahcCookie));
              }
          }
          return Optional.empty();
      }
docs: Get only one cookie, using the cookie name.