anchor.diff:  For each document/object about to be written, {eh} will extract the +media_type+ field and use its value to determine the target resource.
   
   [float]
  -[[spark-write-dyn-java]]
  +[[spark-streaming-write-dyn-java]]
   ===== Java
   
   As expected, things in Java are strikingly similar:
  
positive.code: This sounds more complicated than it is, so let us see some examples.
  
  [float]
  [[spark-write-meta-scala]]
  ===== Scala
  
  Pair ++DStreams++s, or simply put ++DStreams++s with the signature +DStream[(K,V)]+ can take advantage of the +saveToEsWithMeta+ methods that are available either through the _implicit_ import of +org.elasticsearch.spark.streaming+ package or +EsSparkStreaming+ object.
  
negative.code: <7> The +DStream+ is configured to index the data accordingly using the +saveToEsWithMeta+ method
  
  [float]
  [[spark-streaming-write-meta-java]]
  ===== Java
  
  In a similar fashion, on the Java side, +JavaEsSparkStreaming+ provides +saveToEsWithMeta+ methods that are applied to +JavaPairDStream+ (the equivalent in Java of +DStream[(K,V)]+).
  