I have code like this:
val dm = List[String]()
val dk = List[Map[String,Object]]()
.....
dm.add("text")
dk.add(Map("1" -> "ok"))
but it throws runtime java.lang.UnsupportedOperationException.
I need to declare empty list or empty maps and some where later in the code need to fill them.