Code from my Atlassian Summit 2014 presentation