protected function scripts($key = null, $position = 'antares/foundation::scripts')
    {

        if (!$key) {
            return false;
        }
        $containers = $this->getScriptsContainers();
        $config     = $containers['config']->get($key);
        $container  = $containers['container']->container(isset($config['position']) ? $config['position'] : $position);
        if (isset($config['resources']) && !empty($config['resources'])) {
            foreach ($config['resources'] as $name => $path) {
                $container->script($name, $path);
            }
        }
        return;
    }