protected function addWorkspacePathToUri($uri) { if (empty($uri) || '/' === $uri[0]) { if (empty($this->workspaceUri)) { throw new RepositoryException("Implementation error: Please login before accessing content"); } $uri = $this->workspaceUriRoot . $uri; } return $uri; }