Engine engine = new Engine(environment, moduleId, outputName, index, dataType, namingInfo);
CompilationUnit source = engine.generate();
environment.emit(source);
Name packageName = source.getPackageDeclaration().getName();
SimpleName simpleName = source.getTypeDeclarations().get(0).getName();
QualifiedName name = environment
.getModelFactory()
.newQualifiedName(packageName, simpleName);
LOG.debug("Finish preparing output file name template: batch={}, flow={}, output={}, class={}", new Object[] {
environment.getBatchId(),
environment.getFlowId(),
outputName,
name.toNameString(),
});
return name;
}