protected function getFilterConfiguration($filter)
    {
        if (!array_key_exists($filter, $this->mapping)) {
            throw new Exception($filter.' filter not found in assets mapping. Check your configuration');
        }
        $class = $this->mapping[$filter].'Configuration';

        if (!class_exists($class)) {
            throw new Exception($class.' filter configuration class not found');
        }
        $configuration = new $class();

        if (!($configuration instanceof ConfigurationInterface)) {
            throw new Exception(get_class($configuration).' should be an instance of '.ConfigurationInterface::class);
        }

        return $configuration;
    }