private function getDefaultStructureType(StructureBehavior $document)
    {
        $alias = $this->inspector->getMetadata($document)->getAlias();
        $webspace = $this->webspaceManager->findWebspaceByKey($this->inspector->getWebspace($document));

        if (!$webspace) {
            return $this->getDefaultStructureTypeFromConfig($alias);
        }

        return $webspace->getDefaultTemplate($alias);
    }