public Object decompose(Message message, T requestWrapper) throws MessageDeliverException {
HttpServletRequest request = requestWrapper.getRequest();
HttpServletResponse response = requestWrapper.getResponse();
Integer status = HttpServletResponse.SC_OK;
String encoding = null;
HttpResponse responseInfo = org.jboss.soa.esb.http.HttpResponse.getResponse(message);
if(responseInfo != null) {
for(org.jboss.soa.esb.http.HttpHeader header : responseInfo.getHttpHeaders()) {
String headerName = header.getName().toLowerCase();
if(headerName.equals("content-type")) {
response.setContentType(header.getValue());
} else if(responseHeaderFilterset.contains(headerName)) {
// Filter out!!
} else {
response.setHeader(header.getName(), header.getValue());
}
}
if(responseInfo.getContentType() != null) {
response.setContentType(responseInfo.getContentType());
}
encoding = responseInfo.getEncoding();
status = responseInfo.getResponseCode();
}
if(encoding == null) {
encoding = request.getCharacterEncoding();
if(encoding == null) {