if (entry.getResponse().getBodySize() > 0) {
Map<String, String> cookieMap = new HashMap<String, String>();
for (Cookie cookie : sessionIds) {
cookieMap.put(cookie.getName(), cookie.getValue());
}
HarRequest manual = null;
try {
manual = Utils.replaceCookies(entry.getRequest(), cookieMap);
} catch (Exception e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
throw new RuntimeException("Could not copy Har request");