Pass List instead of Map and avoid Java <-> Scala wrapping