String cookiesValue = getHttpCall().getRequestHeaders().getValues(
HttpConstants.HEADER_COOKIE);
if (cookiesValue != null) {
try {
CookieReader cr = new CookieReader(
this.context.getLogger(), cookiesValue);
Cookie current = cr.readCookie();
while (current != null) {
result.add(current);
current = cr.readCookie();
}
} catch (Exception e) {
this.context.getLogger().log(
Level.WARNING,
"An exception occurred during cookies parsing. Headers value: "