for (int i = 0; i < ses.length; i++) {
ComponentInfo info = new ComponentInfo();
info.name = getAttribute(ses[i], "name");
info.type = "Service Engine";
info.state = getAttribute(ses[i], "currentState");
if (components.containsKey(info.name)) {
((ComponentInfo) components.get(info.name)).type = "Unknown";
} else {
components.put(info.name, info);
}
}