using key instead of extId for DocumentEntity identification