name = getNodeValue(attrs.getNamedItem("name"));
state = getNodeValue(attrs.getNamedItem("state"));
}
if(name == null)
return;
InstanceState newInstanceState = null;
if(state == null)
newInstanceState = new InstanceState(InstanceState.StateType.NO_RESPONSE);
else
newInstanceState = new InstanceState(InstanceState.StateType.makeStateType(state));
NodeList list = n.getChildNodes();
if(list == null)
return;
for(int i=0; i<list.getLength(); i++) {
//TODO : Why we need this ? check
String t = list.item(i).getTextContent();
if("\n".equals(t))
continue;
newInstanceState.addFailedCommands(t);
}
instanceStates.put(name, newInstanceState);
}