Code from my presentation at "Conexão Java 2014", in São Paulo, 25th May 2014.