partitionStatsList, getPartitionStore());
List<PartitionStats> finalizedPartitionStatsList =
new ArrayList<PartitionStats>(finalizedPartitionStats);
byte[] partitionStatsBytes =
WritableUtils.writeListToByteArray(finalizedPartitionStatsList);
WorkerSuperstepMetrics metrics = new WorkerSuperstepMetrics();
metrics.readFromRegistry();
byte[] metricsBytes = WritableUtils.writeToByteArray(metrics);
JSONObject workerFinishedInfoObj = new JSONObject();
try {
workerFinishedInfoObj.put(JSONOBJ_PARTITION_STATS_KEY,