def select_config(name, config):
    """Retrieves the element with the regarding name from the config."""
    for item in config:
        if item['name'] == name:
            return item
    return None
