.toAttributes(),
className,
importer.resolve(baseClass),
Collections.<Type>emptyList(),
Collections.singletonList(ctorDecl));
CompilationUnit source = f.newCompilationUnit(
importer.getPackageDeclaration(),
importer.toImportDeclarations(),
Collections.singletonList(typeDecl),
Collections.<Comment>emptyList());
environment.emit(source);