CompilationContext compilationContext = rootElement
.getComponentBean();
addResource(configBean, renderer, builderConfig, compilationContext);
} else if (templateElement instanceof HeaderResourceElement) {
HeaderResourceElement resourceElement = (HeaderResourceElement) templateElement;
ResourceType type = null;
if (templateElement instanceof HeaderScriptsElement) {
type = ResourceType.SCRIPT;
} else if (templateElement instanceof HeaderStylesElement) {
type = ResourceType.STYLE;
}
String[] paths = resourceElement.getResourcePaths();
if (paths != null) {
for (int i = 0; i < paths.length; i++) {
String string = paths[i];
configBean.addResource(string, packageName, type, false);