protected function setContainer(
                $container,
        array $containerOptions = []
    ) {
        // check if container-type exists
        if ($this->containerExists($container) === false) {
            throw new Doozr_Cache_Service_Exception(
                sprintf('Error! Container: "%s" does not exist! Please choose an existing container.', $container)
            );
        }

        // Get container with new options
        return
            $this->container = $this->containerFactory(
                $container,
                array_merge(
                    $this->getDefaultOptions(),
                    $containerOptions
                )
            )
        ;
    }