{
switchesNode.put(UIResource.fixName(type), context.getExhibitor().getControlPanelValues().isSet(type));
}
mainNode.put("switches", switchesNode);
MonitorRunningInstance monitorRunningInstance = context.getExhibitor().getMonitorRunningInstance();
InstanceStateTypes state = monitorRunningInstance.getCurrentInstanceState();
mainNode.put("state", state.getCode());
mainNode.put("description", state.getDescription());
mainNode.put("isLeader", monitorRunningInstance.isCurrentlyLeader());
return JsonUtil.writeValueAsString(mainNode);
}