protected function generateId($uri)
    {
        $property = new \core_kernel_classes_Property($uri);
        $label = strtolower(trim($property->getLabel()));
        $label = preg_replace(array('/\s/', '[^a-z\-]'), array('-', ''), $label);
        return empty($label) ? 'key' : $label;
    }