protected function buildWithoutDefinition($id, array $config = [])
    {
        if (isset($config['__class'])) {
            return $this->buildFromConfig($id, $config);
        }

        if ($this->parent !== null) {
            return $this->parent->build($id, $config);
        }

        if (class_exists($id)) {
            $config['__class'] = $id;
            return $this->buildFromConfig($id, $config);
        }

        throw new NotFoundException("No definition for \"$id\" found");
    }