}
String responseContent = getResponseContent();
// create merged context
WsdlMockRunContext context = new WsdlMockRunContext(request.getContext().getMockService(), null);
context.setMockResponse(this);
// casting below cause WsdlMockRunContext is both a MockRunContext AND a Map<String,Object>
context.putAll((WsdlMockRunContext) request.getContext());
context.putAll((WsdlMockRunContext) request.getRequestContext());
StringToStringsMap responseHeaders = getResponseHeaders();
for (Map.Entry<String, List<String>> headerEntry : responseHeaders.entrySet()) {
for (String value : headerEntry.getValue()) {
result.addHeader(headerEntry.getKey(), PropertyExpander.expandProperties(context, value));