XmlNode stateNameNode = (XmlNode)nodeInfo.children.elementAt(1);
String stateNameValue = stateNameNode.nodeValue;
catMidlet.addState(stateCodeValue, stateNameValue);
State state = new State(stateCodeValue,stateNameValue);
if (catMidlet.statesInMemory != null){
catMidlet.statesInMemory.addElement(state);
}
}