Sample code from my talk at JavaZone 2013