What do you intend to do here? Config is immutable, and I guess this is creating a Java HashMap from it (but:
```scala
import scala.collections.JavaConverters._
config.asJava
```
would be more canonical. But, in any case, the flow already got the config (and this one can't change), so is there some other side effect of this operation?

I think this is better suited to the config method.