class WilmaHttpResponseCloner {

    public WilmaHttpResponse cloneResponse(final WilmaHttpResponse response) {
        WilmaHttpResponse result = new WilmaHttpResponse(response.isVolatile());
        result.setStatusCode(response.getStatusCode());
        result.setContentType(response.getContentType());
        result.setBody(response.getBody());
        copyHeaders(response, result);
        result.setWilmaMessageId(response.getWilmaMessageId());
        return result;
    }

}