private function createContainerFromClassSpec($classSpec)
    {
        $constructor = explode('::', $classSpec);

        if (2 === count($constructor)) {
            return call_user_func($constructor);
        }

        return new $constructor[0];
    }