NodeList elementsList = document.getDocumentElement().getElementsByTagName(ELEMENT_NAME);
for (int j = 0; j < elementsList.getLength(); j++) {
Element element = (Element) elementsList.item(j);
String path = element.getAttribute(PATH_ATTRIBUTE_NAME);
String description = element.getAttribute(DESC_ATTRIBUTE_NAME);
Action action = findByPath(definition, path);
if (action != null) {
action.setDescription(description);
}
}
} catch (Exception e) {
DesignerLogger.logError("Unable to apply " + XML_FILE_NAME, e);
}