if (message.getContentType() != null) sysProperties.put(CONTENT_TYPE_KEY, message.getContentType());
separatorNeeded = appendPropertyIfPresent(stringBuilder, separatorNeeded, CONNECTION_MODULE_ID, message.getConnectionModuleId()); separatorNeeded = appendPropertyIfPresent(stringBuilder, separatorNeeded, CONTENT_ENCODING, message.getContentEncoding()); separatorNeeded = appendPropertyIfPresent(stringBuilder, separatorNeeded, CONTENT_TYPE, message.getContentType());
if (message.getContentType() != null) properties.setContentType(Symbol.valueOf(message.getContentType()));
if (message.getContentType() != null) request.setHeaderField(MessageProperty.IOTHUB_CONTENT_TYPE, message.getContentType());