private Response httpRequest(SubmitContext context, HttpRequestInterface<?> request, ExtendedHttpMethod httpMethod,
Header responseContentTypeHeader, String requestContent) {
if (responseContentTypeHeader != null
&& responseContentTypeHeader.getValue().toUpperCase().startsWith("MULTIPART")) {
return new MimeMessageResponse(request, httpMethod, requestContent, context);
} else {
return new SinglePartHttpResponse(request, httpMethod, requestContent, context);
}
}