code: private List<AbstractJcrNode> findOutputNodes( AbstractJcrNode rootOutputNode ) throws RepositoryException {
          if (rootOutputNode.isNew()) {
              return Arrays.asList(rootOutputNode);
          }
  
          // if the node was not new, we need to find the new sequenced nodes
          List<AbstractJcrNode> nodes = new ArrayList<AbstractJcrNode>();
          NodeIterator childrenIt = rootOutputNode.getNodesInternal();
          while (childrenIt.hasNext()) {
              Node child = childrenIt.nextNode();
              if (child.isNew()) {
                  nodes.add((AbstractJcrNode)child);
              }
          }
          return nodes;
      }
docs: Finds the top nodes which have been created during the sequencing process, based on the original output node. It is
  important that this is called before the session is saved, because it uses the new flag.
  
  @param rootOutputNode the node under which the output of the sequencing process was written to.
  @return the first level of output nodes that were created during the sequencing process; never null
  @throws RepositoryException if there is a problem finding the output nodes