Application for Declarative Diversions project GSoC 2011