Removed not needed code. Fixed TemplatedCodeDecorator.