Group group = new Group(name);
for (int i = 0; i < jsSources.getLength(); i++) {
final Element item = (Element) jsSources.item(i);
final ResourceDesc desc = parseSource(item, defaultPathOnDisk);
boolean isMinimized = !item.hasAttribute(MINIMIZED_ATT) || Boolean.parseBoolean(item.getAttribute(MINIMIZED_ATT));
Resource resource = createResource(isMinimized, desc, ResourceType.JS);
group.addResource(resource);
}
final NodeList cssSources = declareEl.getElementsByTagName(CSS_SOURCE_EL);
for (int i = 0; i < cssSources.getLength(); i++) {
final Element item = (Element) cssSources.item(i);
final ResourceDesc desc = parseSource(item, defaultPathOnDisk);
boolean isMinimized = !item.hasAttribute(MINIMIZED_ATT) || Boolean.parseBoolean(item.getAttribute(MINIMIZED_ATT));
Resource resource = createResource(isMinimized, desc, ResourceType.CSS);
group.addResource(resource);
}
model.addGroup(group);