def config_map(configmap, config):
    """
    Map the config provided to PGWare to the client format

    Map format: {ADAPTER_KEY: [PGWARE_KEY, DEFAULT_VALUE] | ...}
    """
    out = dict(zip(configmap.keys(), [None] * len(configmap)))
    for key, definition in configmap.items():
        out[key] = config.get(*definition)
    return out