private void sequenceWord( Node rootNode,
org.modeshape.jcr.api.ValueFactory valueFactory,
InputStream stream ) throws RepositoryException, IOException {
// Sometime in the future this will sequence WORD Table of contents.
WordMetadata wordMetadata = WordMetadataReader.instance(stream);
recordMetadata(rootNode, valueFactory, wordMetadata.getMetadata());
for (WordMetadata.WordHeading headingMetadata : wordMetadata.getHeadings()) {
Node heading = rootNode.addNode(HEADING_NODE, HEADING_NODE);
setProperty(heading, HEADING_NAME, headingMetadata.getText());
setProperty(heading, HEADING_LEVEL, headingMetadata.getHeaderLevel());
}
}