{
session1.exportSystemView(subRoot1.getPath(), new FileOutputStream(exportFile), false, false);
}
else
{
session1.exportDocumentView(subRoot1.getPath(), new FileOutputStream(exportFile), false, false);
}
// remove existed node
subRoot1.remove();
session1.save();