if (isCollection) {
// for collection we have to iterate through children
addDescendants(rootResourceID, versionList, isRenewing, keepProperties);
}
// wrap the array list into stream
InputStream versionsInputStream = new VersionInputStream(versionList);
int pathId = rootResourceID.getPathID();
String resourceName = rootResourceID.getName();
long snapshotID =
resourceVersionDAO.createSnapshot(pathId, resourceName, versionsInputStream);