public function getResourceId(): ?string
    {
        if (is_null($this->resourceId)) {
            return $this->parameter(ResourceRegistrar::PARAM_RESOURCE_ID);
        }

        return $this->resourceId ?: null;
    }