@Override
public void writeResponse(ManagementCenterService mcs, ObjectDataOutput dos) throws Exception {
Runtime runtime = Runtime.getRuntime();
RuntimeMXBean runtimeMxBean = ManagementFactory.getRuntimeMXBean();
InternalPartitionService partitionService = mcs.getHazelcastInstance().node.getPartitionService();
Map<String, String> properties = new LinkedHashMap<String, String>();
properties.put("hazelcast.cl_version", mcs.getHazelcastInstance().node.getBuildInfo().getVersion());
properties.put("date.cl_startTime", Long.toString(runtimeMxBean.getStartTime()));
properties.put("seconds.cl_upTime", Long.toString(runtimeMxBean.getUptime()));
properties.put("memory.cl_freeMemory", Long.toString(runtime.freeMemory()));
properties.put("memory.cl_totalMemory", Long.toString(runtime.totalMemory()));
properties.put("memory.cl_maxMemory", Long.toString(runtime.maxMemory()));
properties.put("return.hasOngoingMigration", Boolean.toString(partitionService.hasOnGoingMigration()));
properties.put("data.cl_migrationTasksCount", Long.toString(partitionService.getMigrationQueueSize()));
dos.writeInt(properties.size());
for (Map.Entry<String, String> entry : properties.entrySet()) {
dos.writeUTF(entry.getKey() + ":#" + entry.getValue());