List<Resource<?>> generatedResources = provider.generateFromEntity(targetDir, template, entity, overwrite);
// TODO give plugins a chance to react to generated resources, use event bus?
if (!generatedResources.isEmpty())
{
generatedEvent.fire(new ScaffoldGeneratedResources(provider, prepareResources(generatedResources)));
}
ShellMessages.success(writer, "Generated UI for [" + entity.getQualifiedName() + "]");
}