public function getMetadata($subject, string $key, $metadataSubject = null, string $name = null): ?string
    {
        return $this
            ->workflowRegistry
            ->get($subject, $name)
            ->getMetadataStore()
            ->getMetadata($key, $metadataSubject)
        ;
    }