public function configure(array $configs, $prefix, ConfigurationInterface $configuration, ContainerBuilder $container)
    {
        $config = $this->processConfiguration($configuration, $configs);

        $loader = new XmlFileLoader($container, new FileLocator($this->getConfigurationDirectory()));
        $this->loadConfigurationFile($this->configFiles, $loader);

        if (array_key_exists('pools', $config)) {
            $builder = new PoolBuilder($container);
            foreach ($config['pools'] as $resourceName => $params) {
                $builder
                    ->configure($prefix, $resourceName, $params)
                    ->build()
                ;
            }
        }

        return $config;
    }