private function configureErrorPresentationFactory(array $factoryConfig, ContainerBuilder $container): void
    {
        if ($this->isConfigEnabled($container, $factoryConfig['validation'])) {
            $container->getDefinition('fivelab.resource.error_presentation_factory.validation_failed')
                ->setAbstract(false)
                ->replaceArgument(0, $factoryConfig['validation']['message'])
                ->replaceArgument(1, $factoryConfig['validation']['reason']);
        }
    }