// If the content type was already set, do nothing.
if (response.getContentType() == null) {
// By default we use the content type of the transport.
if (null == contentType) {
response.setContentType(transport.contentType());
} else {
response.setContentType(contentType);
}
}