public function getResource()
    {
        if (!$this->resource_type || !$this->resource_id) {
            return null;
        }

        return $this->getApi()->getStore()->find(
            ResourceIdentifier::create($this->resource_type, (string) $this->resource_id)
        );
    }