def setInstanceState(inst, unjellier, jellyList):
    """
    Utility method to default to 'normal' state rules in unserialization.
    """
    state = unjellier.unjelly(jellyList[1])
    if hasattr(inst, '__setstate__'):
        inst.__setstate__(state)
    else:
        inst.__dict__ = state
    return inst
