Transfers instance state data from the given source entity to the
        given target entity.

def transfer_state_data(cls, source_entity, target_entity):
        """
        Transfers instance state data from the given source entity to the
        given target entity.
        """
        state_data = cls.get_state_data(source_entity)
        cls.set_state_data(target_entity, state_data)