protected function getRealContainer()/*# : ContainerInterface */
    {
        $cont = $this->getContainer();

        // get delegator recursively
        if ($cont instanceof DelegatorAwareInterface &&
            $cont->hasDelegator()
        ) {
            $cont = $cont->getDelegator(true);
        }

        return $cont;
    }