public void addKey(String key, JsonDataType jsonDataType, String value) {
List<TreeNode> node = new LinkedList<TreeNode>();
Object mongoObject = MongoUtils.parseValue(jsonDataType, value);
JsonTreeNode treeNode = new JsonTreeNode(MongoKeyValueDescriptor.createDescriptor(key, mongoObject));
if (mongoObject instanceof DBObject) {
JsonTreeModel.processDbObject(treeNode, (DBObject) mongoObject);
}
node.add(treeNode);
DefaultTreeModel treeModel = (DefaultTreeModel) editTableView.getTree().getModel();
JsonTreeNode parentNode = getParentNode();
if (parentNode == null) {
parentNode = (JsonTreeNode) treeModel.getRoot();
}
TreeUtil.addChildrenTo(parentNode, node);
treeModel.reload(parentNode);