def splitUniqueAndDuplicatedEntries(handles):
    listOfUniqueHandles = []
    duplicates = OrderedDict()
    for handle in handles:
        if (handle.alias != None):
            duplicates[handle.alias] = handle
        if (not handle.isAlias):
            listOfUniqueHandles.append(handle)
    return (listOfUniqueHandles, duplicates)
def splitUniqueAndDuplicatedEntries(handles):
    listOfUniqueHandles = []
    duplicates = OrderedDict()
    for handle in handles:
        if (handle.alias != None):
            duplicates[handle.alias] = handle
        if (not handle.isAlias):
            listOfUniqueHandles.append(handle)
    return (listOfUniqueHandles, duplicates)