JavaClass entity = (JavaClass) (jr).getJavaSource();
List<Resource<?>> generatedResources = provider.generateFromEntity(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(out, "Generated UI for [" + entity.getQualifiedName() + "]");
}
}