// extract their metadata and check that they are valid for the given domain
final List<CookieUtil.Cookie> cookies = CookieUtil.extractCookiesFrom(hostURL, cookieValues);
// retrieve the session information associated with this interaction
CurrentInfo info = getCurrentInfo(true);
ProducerSessionInformation sessionInfo = info.sessionInfo;
// update the current information with the new information
if (sessionInfo.isPerGroupCookies())
{
if (info.groupId == null)
{
throw new IllegalStateException("Was expecting a current group Id...");
}
sessionInfo.setGroupCookiesFor(info.groupId, cookies);
}
else
{
sessionInfo.setUserCookies(cookies);
}
}
// allow other handlers in the chain to process the message
return true;