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

Previously, if Content-Type is set, the Java DSL would overwrite it. This patch only sets a Content-Type if there is none supplied.