I finally found a solution to my problem. It turned out 'contentTypeHeader'
could be set to 'false' in the following simple way:
restConfiguration().dataFormatProperty("contentTypeHeader", "false")...Now I am able to return responses with custom Content-Type values.
