implementing Java Api on top of Scala impl (part 2)