def METHOD_NAME(cls, config_dict, metadata_config: OpenMetadataConnection):
    config: WorkflowSource = WorkflowSource.parse_obj(config_dict)
    connection: AthenaConnection = config.serviceConnection.__root__.config
    if not isinstance(connection, AthenaConnection):
        raise InvalidSourceException(
            f"Expected AthenaConnection, but got {connection}"
        )
    return cls(config, metadata_config)