@classmethod
def add_from_case_control(cls, line_upper, lines, i):
    """add method used by the CaseControl class"""
    line = lines[i]
    sline = line_upper.split('=')
    assert len(sline) == 2, sline
    key, value = sline
    try:
        key, set_id = key.split()
    except:
        raise RuntimeError(key)
    assert key.upper() == key, key
    unused_options = int(set_id)
    fivalues = value.rstrip(' ,').split(',')
    if line[-1].strip() == ',':
        i += 1
        while 1:
            if lines[i].strip()[-1] == ',':
                fivalues += lines[i][:-1].split(',')
            else:
                fivalues += lines[i].split(',')
                i += 1
                break
            i += 1
    return cls(set_id, fivalues)
