if (nextChild.getLocalName().equals("servicesInfo")) {
// set the state of the services object
((MobileServices) services).setState(XmlUtil.xmlNode2String(nextChild));
} else if (nextChild.getLocalName().equals("localState")) {
// set the state of the component and ports
Object localState = nextChild.readNextChild();
if (localState != null) {
StringWriter sw = new StringWriter();
Util.readXMLEscapedString(sw, (String) localState);
((MobileServices) services).getComponent().
setComponentState(services, sw.toString());