if(preserveNodes) {
EntryUtils.copyNodes(directory.getFileSystem(), outFS, writtenEntries);
}
// Send the POIFSFileSystem object out to the underlying stream
outFS.writeFilesystem(out);
}
/* ******************* adding methods follow ********************* */