}
private void sequenceExcel( Node sequencedNode,
org.modeshape.jcr.api.ValueFactory valueFactory,
InputStream stream ) throws IOException, RepositoryException {
ExcelMetadata excelMetadata = ExcelMetadataReader.instance(stream);
recordMetadata(sequencedNode, valueFactory, excelMetadata.getMetadata());
setProperty(sequencedNode, FULL_CONTENT, excelMetadata.getText());
for (ExcelSheetMetadata sheetMetadata : excelMetadata.getSheets()) {
Node sheet = sequencedNode.addNode(EXCEL_SHEET, EXCEL_SHEET_NODE);
setProperty(sheet, SHEET_NAME, sheetMetadata.getName());
setProperty(sheet, TEXT, sheetMetadata.getText());
}
}