Added explicit 'final' modifier to methods in 'final' classes (the generated code ignores the 'final' class modifier in the functions)