public void setContentType(String typeSubtype) {
        String contentTypeStr = headers.get(CONTENT_TYPE);
        if (contentTypeStr != null) {
            ContentType contentType = new ContentType(contentTypeStr);
            contentType.setTypeSubtype(typeSubtype);
            headers.put(CONTENT_TYPE, contentType.toString());
        } else {
            headers.put(CONTENT_TYPE, typeSubtype);
        }
    }
Set the type/subtype value of the Content-Type header.

@param typeSubtype the type/subtype value
plugins/jsonp-policy/src/main/java/io/apiman/plugins/jsonp_policy/http/HttpHeaders.java