Unable to log ${request.mainpart} when a custom contentType is being used