public function applyValidator($value, array $configuration)
    {
        // Validate configuration
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $configuration = $resolver->resolve($configuration);

        $this->validate($value, $configuration);
    }