Chapter 5 working code from Play for Java book