ResteasyHttpHeaders headers = new ResteasyHttpHeaders(requestHeaders);
Map<String, Cookie> cookies = extractCookies(requestHeaders);
headers.setCookies(cookies);
// test parsing should throw an exception on error
headers.testParsing();
return headers;
}
static Map<String, Cookie> extractCookies(MultivaluedMap<String, String> headers)