code: @Deprecated
  	public static <T> FlinkKafkaProducer010Configuration<T> writeToKafkaWithTimestamps(DataStream<T> inStream,
  																					String topicId,
  																					KeyedSerializationSchema<T> serializationSchema,
  																					Properties producerConfig,
  																					FlinkKafkaPartitioner<T> customPartitioner) {
  		FlinkKafkaProducer010<T> kafkaProducer = new FlinkKafkaProducer010<>(topicId, serializationSchema, producerConfig, customPartitioner);
  		DataStreamSink<T> streamSink = inStream.addSink(kafkaProducer);
  		return new FlinkKafkaProducer010Configuration<>(streamSink, inStream, kafkaProducer);
  	}
docs: Creates a FlinkKafkaProducer for a given topic. The sink produces a DataStream to
  the topic.
  
  <p>This constructor allows writing timestamps to Kafka, it follow approach (b) (see above)
  
  @param inStream The stream to write to Kafka
  @param topicId The name of the target topic
  @param serializationSchema A serializable serialization schema for turning user objects into a kafka-consumable byte[] supporting key/value messages
  @param producerConfig Configuration properties for the KafkaProducer. 'bootstrap.servers.' is the only required argument.
  @param customPartitioner A serializable partitioner for assigning messages to Kafka partitions.
  
  @deprecated Use {@link #FlinkKafkaProducer010(String, KeyedSerializationSchema, Properties, FlinkKafkaPartitioner)}
  and call {@link #setWriteTimestampToKafka(boolean)}.