protected function loadIntermediateContainerInstance($containerClass): ContainerInterface {
        $arguments = $this->getConfiguration() [AbstractFileConfiguration::SERVICE_INIT_ARGUMENTS] ?? NULL;
        $cfg = $this->getConfiguration() [AbstractFileConfiguration::SERVICE_INIT_CONFIGURATION] ?? NULL;

        try {
            /** @var ContainerInterface $instance */
            $instance = $this->serviceManager->makeServiceInstance($containerClass, $arguments, $cfg);
            if($instance instanceof ContainerInterface)
                return $instance;
            throw new ServiceException("Class $containerClass does not implement ". ContainerInterface::class, 893);
        } catch (\Throwable $e) {
            $e = new BadContainerException($e->getMessage(), $e->getCode(), $e);
            $e->setServiceName($this->serviceName);
            $e->setContainer(NULL);
            throw $e;
        }
    }