List<Resource<?>> resourceList = Arrays.asList(resources);
List<Resource<?>> generatedResources = provider.generateFrom(resourceList, targetDir, 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 scaffold for [" + resourceList + "]");
}