public JSON toJSON() { JSON json = new JSON(); json.set("handle", handle); json.map("methods", getMethods()); return json; }