Spark platform to handle ValueFlatMappedProducer