A more complex record processor; a pure java example too for those looking at java to scala examples