Correction of BufferedWriter in method ClassNew in CppGenerator