@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(typeSubtype);
        if (parameters != null) {
            for (Map.Entry<String, String> entry : parameters.entrySet()) {
                sb.append("; ").append(entry.getKey()).append("=").append(entry.getValue()); //$NON-NLS-1$ //$NON-NLS-2$
            }
        }
        return sb.toString();
    }
Generates string representation of this content type which can be used as the value of a Content-Type header.
plugins/jsonp-policy/src/main/java/io/apiman/plugins/jsonp_policy/http/ContentType.java