refactoring according to changes in Sensio/GeneratorBundle 2.2