if (rcm != null) {
UnitOfWorkChangeSet changeSet = new UnitOfWorkChangeSet(getSession());
ObjectChangeSet objectChangeSet = new ObjectChangeSet(primaryKey, descriptor, null, changeSet, false);
objectChangeSet.setSynchronizationType(ClassDescriptor.INVALIDATE_CHANGED_OBJECTS);
changeSet.getAllChangeSets().put(objectChangeSet, objectChangeSet);
MergeChangeSetCommand command = new MergeChangeSetCommand();
command.setChangeSet(changeSet);
try {
command.convertChangeSetToByteArray(getSession());
} catch (java.io.IOException exception) {
throw CommunicationException.unableToPropagateChanges(command.getServiceId().getId(), exception);
}
rcm.propagateCommand(command);
}
}
}