public function getOptions(string $listName) : array
    {
        try {
            $entity = $this->find('all')
                ->enableHydration(true)
                ->where(['name' => $listName])
                ->firstOrFail();
        } catch (RecordNotFoundException $e) {
            return [];
        }

        $treeOptions = [
            'keyPath' => 'value',
            'valuePath' => 'name',
            'spacer' => ' - '
        ];

        Assert::isInstanceOf($entity, EntityInterface::class);

        return $this->DblistItems->find('treeList', $treeOptions)
            ->where(['dblist_id' => $entity->get('id')])
            ->toArray();
    }