Won't compile, but a lot of the original java code has been converted to scala!