}
private SettingsSetup readSettingsSetup(Node node) throws SAXException {
NamedNodeMap attributes = node.getAttributes();
SettingsSetup settingsSetup = new SettingsSetup();
String path = getAttribute(attributes, IVYSETTING_PATH);
settingsSetup.setIvySettingsPath(path);
String loadOnDemand = getAttribute(attributes, IVYSETTING_LOADONDEMAND);
settingsSetup.setLoadSettingsOnDemand(Boolean.valueOf(loadOnDemand).booleanValue());
List/* <String> */propertyFiles = new ArrayList();
NodeList children = node.getChildNodes();
for (int j = 0; j != children.getLength(); j++) {
Node item = children.item(j);
if (item.getNodeName().equals(PROPERTYFILE)) {
attributes = item.getAttributes();
path = getAttribute(attributes, PROPERTYFILE_PATH);
propertyFiles.add(path);
}
}
settingsSetup.setPropertyFiles(propertyFiles);
return settingsSetup;
}