boolean isRoot = tree.getValue().equals(marker);
if (UITreeOld.COMMAND_NEW.equals(command)) {
treeState.commandNew(create(facesContext));
} else if (UITreeOld.COMMAND_DELETE.equals(command)) {
if (!isRoot) {
marker.removeFromParent();
}
treeState.setLastMarker(null);
treeState.setLastCommand(null);
} else if (UITreeOld.COMMAND_CUT.equals(command)) {
if (!isRoot) {