WsdlResponse response = request.getResponse();
mockResponse.setResponseContent(response.getContentAsString());
Attachment[] attachments = response.getAttachments();
for (Attachment attachment : attachments) {
mockResponse.addAttachment(attachment);
}
if (mockResponse.getResponseHeaders() != null && mockResponse.getResponseHeaders().size() > 0
&& UISupport.confirm("Add current Response HTTP Headers to MockResponse", title)) {
mockResponse.setResponseHeaders(response.getResponseHeaders());