def getCloneCandidate(outputs):
    """
    :returns single connected & enabled display output which will be cloned
    """
    index = None
    for i, output in enumerate(outputs):
        if output and index is None:
            index = i
        if output['isPrimary']:
            return output
    if index is None:
        raise Exception('No connected display outputs detected.')
    return outputs[index]
