List<Object> topTerms = getTopFeaturesList(clusterWritable.getValue()
.getCenter(), dictionary, numTopFeatures);
res.put("top_terms", topTerms);
// get human-readable cluster representation
Cluster cluster = clusterWritable.getValue();
Map<String,Object> fmtStr = cluster.asJson(dictionary);
res.put("cluster_id", cluster.getId());
res.put("cluster", fmtStr);
// get points
List<Object> points = getPoints(cluster, dictionary);
res.put("points", points);