The transition from java to scala is almost done.

Signed-off-by: Patrick Meppe <tapmeppe@gmail.com>