'Helper method to unjelly set or frozenset.
@param lst: the content of the set.
@type lst: C{list}
@param containerType: the type of C{set} to use.'

def _unjellySetOrFrozenset(self, lst, containerType):

    l = list(range(len(lst)))
    finished = True
    for elem in l:
        data = self.unjellyInto(l, elem, lst[elem])
        if isinstance(data, NotKnown):
            finished = False
    if (not finished):
        return _Container(l, containerType)
    else:
        return containerType(l)
