// Pass response headers back to the client
Header[] headerArrayResponse = httpMethodProxyRequest.getResponseHeaders();
for (Header header : headerArrayResponse) {
if (!ProxySupport.isHopByHopHeader(header.getName())) {
if (ProxySupport.isSetCookieHeader(header)) {
HttpProxyRule proxyRule = proxyDetails.getProxyRule();
String setCookie = ProxySupport.replaceCookieAttributes(header.getValue(),
proxyRule.getCookiePath(),
proxyRule.getCookieDomain());
httpServletResponse.setHeader(header.getName(), setCookie);
} else {
httpServletResponse.setHeader(header.getName(), header.getValue());
}
}