r20680: prepare the helper functions for applying replicated objects