DefaultMutableTreeNode node = getSelectedNode();
if (node == null) return;
// get the default index for adding
PropertyKey parentPKey = treeModel.getPropKey (useProps, node.getPath ());
Prop val = useProps.pget (parentPKey);
int newIndex = useProps.getNumChildren (parentPKey);
// See if should be adding at other index...
// if parent specifies allowed children
String status, allowedChild;
PropertyKey cutKey = treeModel.getPropKey (useProps, cutNode.getPath());
Prop cutProp = useProps.pget(cutKey);
String cutID = cutProp.getID();
if ((val != null) && ((status = val.getStatus()) != null)) {
int idx1 = status.indexOf (ALLOWED_CHILD);
int idx2 = status.indexOf (REQUIRED_PARENT);
if (idx1 >= 0) {
if (idx2 < 0)