// build properties collection
List<String> requestedIds = FilterParser.getRequestedIdsFromFilter("*");
// TypeDefinition td = fStoreManager.getTypeById(repositoryId, so.getTypeId()).getTypeDefinition();
Properties existingProps = PropertyCreationHelper.getPropertiesFromObject(so, td, requestedIds, true);
PropertiesImpl newPD = new PropertiesImpl();
// copy all existing properties
for (PropertyData<?> prop : existingProps.getProperties().values()) {
newPD.addProperty(prop);
}
// overwrite all new properties
for (PropertyData<?> prop : properties.getProperties().values()) {
newPD.addProperty(prop);