This is even better ! -- I think we can get rid of the generateRDD method and just use the one from the generator in both Java and Scala ?