writer.writeEndElement();
continue;
}
if (value instanceof Server) {
writer.writeStartElement(name);
Server server = (Server) value;
writer.writeStartElement("serverKey");
writer.writeCData(server.getServerKey());
writer.writeEndElement();
writer.writeStartElement("serviceName");
if (value instanceof StatefulServer) {
writer.writeCData(((StatefulServer) server).getServiceName());
} else {
writer.writeCData("unknown");
}
writer.writeEndElement();
writer.writeStartElement("host");
writer.writeCData(server.getHost());
writer.writeEndElement();
writer.writeStartElement("port");
writer.writeCData(String.valueOf(server.getPortNr()));
writer.writeEndElement();
writer.writeStartElement("socketAddress");
writer.writeCData(String.valueOf(server.getSocketAddress()));
writer.writeEndElement();
writer.writeEndElement();
continue;
}
if (value instanceof IRequester) {