I wonder how scoping something in Scala works when used from Java...