private void addResources(ResourcesConfigGeneratorBean configBean,
TemplateElement templateElement, String packageName,
RendererBean renderer, BuilderConfig builderConfig)
throws ClassNotFoundException {
if (templateElement instanceof FResourceTemplateElement) {
FResourceTemplateElement resourceTemplateElement = (FResourceTemplateElement) templateElement;
String name = resourceTemplateElement.getName();
configBean.addResource(name, packageName, null, true);
} else if (templateElement instanceof RootElement) {
RootElement rootElement = (RootElement) templateElement;