The layout code is too messy, too couple and low cohesion. 
So thinking how make it better I refactored the request flowElement to a
command pattern, encapsulating it in differents classes.
Merge branch 'master' of https://github.com/eduardoraupp/Activiti