Translating some Jinq Scala code written in Java to Scala so that I can
make use of Scala trait functionality.