folder.addChildDocument(verDoc); // add document to folder and
}
version.createSystemBasePropertiesWhenCreated(propMap, user);
version.setCustomProperties(propMap);
version.persist();
verDoc.persist();
so = version; // return the version and not the version series to
// caller
} else {
Document doc = fStoreManager.getObjectStore(repositoryId).createDocument(name);
doc.setContent(contentStream, false);