public function getResource(bool $create = true, bool $uploadBinary = true): FedoraResource {
        if ($this->res === null) {
            try {
                $this->findResource(false, false);
            } catch (NotFound $e) {
                $this->updateRms($create, $uploadBinary);
            }
        }
        return $this->res;
    }