public function generate($parts, $parentUuid, $webspaceKey, $languageCode, $templateKey, $segmentKey = null)
{
/** @var StructureInterface $structure */
$structure = $this->structureManager->getStructure($templateKey);
$title = $this->implodeRlpParts($structure, $parts);
$resourceLocatorStrategy = $this->resourceLocatorStrategyPool->getStrategyByWebspaceKey($webspaceKey);
$resourceLocator = $resourceLocatorStrategy->generate($title, $parentUuid, $webspaceKey, $languageCode, $segmentKey);
return ['resourceLocator' => $resourceLocator, '_links' => ['self' => $this->getBasePath() . '/generates']];
}