for(Map.Entry<String, List<String>> header: responseHeaders.entrySet())
{
// We can only deal with the first value in the list.
// JBESB-2511
new ResponseHeader(header.getKey(), header.getValue().get(0)).setPropertyNameThis(properties);
}
// JBESB-2761
if (httpResponseStatusEnabled) {
ResponseStatus.setHttpProperties(properties, servletResponse.getStatus(), servletResponse.getStatusMessage());
}
final byte[] responseData = servletResponse.getContent() ;
if(contentType != null) {
responseProperties.setProperty("Content-Type", new ResponseHeader("Content-Type", contentType));
} else {
responseProperties.setProperty("Content-Type", new ResponseHeader("Content-Type", "text/xml"));
}
if ((contentType != null) && contentType.startsWith("multipart/")) {
payloadProxy.setPayload(message, responseData) ;
} else {