Prefer JavaConverters, with an explicit `.asScala` call in the code. 

In addition, its sufficient to drop the `scala` prefix in the imports. I dont think you need to explicitly import Set or HashMap either