docs: protected final String computeOutputNodeName( Node selectedNode ) throws RepositoryException {
          String selectedNodeName = selectedNode.getName();
          if (selectedNodeName.equals(JcrConstants.JCR_CONTENT)) {
              try {
                  return selectedNode.getParent().getName();
              } catch (ItemNotFoundException e) {
                  // selected node must be the root node ?!?!
              }
          }
          return selectedNodeName;
      }