public Result heap(String nodeId) {
try {
Map<String, Object> result = Maps.newHashMap();
Node node = nodeService.loadNode(nodeId);
return ok(Json.toJson(jvmMap(node.jvm(), node.getBufferInfo())));
} catch (NodeService.NodeNotFoundException e) {
return status(404, "node not found");
}
}