private function getServiceLocatorWithDynamicParameters(TypeContext $context, string $tagName, string $tagBody): array
    {
        $locator = array_merge(
            $this->serviceLocator,
            [
                'name' => $tagName,
                'body' => $tagBody,
                TypeContext::class => $context,
            ]
        );

        return $locator;
    }