public void addValue(TreePath parentPath, Object value, String name) {
try {
Object parent = parentPath.getLastPathComponent();
if (parent instanceof ListProperty) {
ListProperty property = (ListProperty) parent;
property.addValue(value);
TreeModelEvent event = new TreeModelEvent(this, parentPath, new int[]{property.getNumValues()-1}, new Object[]{value});
for (int i = 0; i <myListeners.size(); i++) {
myListeners.get(i).treeNodesInserted(event);
}