for (PropertyData<?> prop : existingProps.getProperties().values()) {
newPD.addProperty(prop);
}
// overwrite all new properties
for (PropertyData<?> prop : properties.getProperties().values()) {
newPD.addProperty(prop);
}
String res = createDocument(context, repositoryId, newPD, folderId, content, versioningState, policies,
addAces, removeAces, null);
LOG.debug("stop createDocumentFromSource()");