* @return cookie map
*/
public CookieMap getCookieMap(LaunchSession launchSession) {
if (log.isDebugEnabled())
log.debug("Getting cookie map for " + launchSession.getId() + " (" + launchSession.hashCode() + ")");
CookieMap cookieMap = (CookieMap) launchSession.getAttribute(Constants.ATTR_COOKIE_MAP);
if (cookieMap == null) {
if (log.isDebugEnabled())
log.debug("Creating new cookie map");
cookieMap = new CookieMap();
launchSession.setAttribute(Constants.ATTR_COOKIE_MAP, cookieMap);
}
return cookieMap;
}