}
@Override
public void writeResponse(ManagementCenterService mcs, JsonObject root) {
final JsonObject result = new JsonObject();
String threadDump = (String) mcs.callOnThis(new ThreadDumpOperation(dumpDeadlocks));
if (threadDump != null) {
result.add("hasDump", true);
result.add("dump", threadDump);
} else {
result.add("hasDump", false);