Modified Java DSL so it does not overwrite Content-Type if already set.