public File writeOutput(File sourceFile,
CompilationUnit compilationUnit,
CompilationUnitSinkFactory writerFactory,
boolean verbose) throws CompilerError {
CompilationUnitSink sink = writerFactory.createSink(
compilationUnit.getPackageDeclaration(), compilationUnit.getPrimaryDeclaration(),
sourceFile, verbose);
return sink.writeOutput(compilationUnit);
}