def dict_to_serialized_dict(ref, the_dict):
    """Serialize the list of elements to a dictionary

    Used for the retention store

    :param ref: Not used
    :type ref:
    :param the_dict: dictionary to convert
    :type the_dict: dict
    :return: dict of serialized
    :rtype: dict
    """
    result = {}
    for elt in list(the_dict.values()):
        if not getattr(elt, 'serialize', None):
            continue
        result[elt.uuid] = elt.serialize()
    return result
Serialize the list of elements to a dictionary

    Used for the retention store

    :param ref: Not used
    :type ref:
    :param the_dict: dictionary to convert
    :type the_dict: dict
    :return: dict of serialized
    :rtype: dict