/**
  * @param ResourceInterface|null $resource
  * @param string                 $action
  * @param bool                   $absolute
  * @return string
  * @throws \Exception
  */
 public function getResourcePath(ResourceInterface $resource = null, $action = 'download', $absolute = false)
 {
     return $this->resourceManager->getFileUrl($resource, $action, $absolute);
 }