public static TreeNodeJson getJsonObjByNode(Node node) { TreeNodeJson json = new TreeNodeJson(); json.setId(node.getNodeid()); json.setText(node.getName()); return json; }