def map_get_values(map, key):
    """
    Retrieves the value of the map for the given key.
    The value is validated for type and in case it's not
    a list a list is created with the value.
    This way the method return value is always a list
    independently from the type of the original value.

    :type map: Dictionary
    :param map: The dictionary to be used.
    :type key: String
    :param key: The key to the value(s) to be retrieved.
    :rtype: List
    :return: The values(s) for the key.
    """
    values = map.get(key, [])
    values_type = type(values)
    if not values_type == list:
        values = [values]
    return values
