Slides and code for my JavaDay Riga 2013 talk