A few useful snippets for use in Play 2.x in java