Actually:
`new Fields(fieldMap.keys.asJava)`

with the scala.collection.JavaConverters._ imported.