public function createPathInformation($streamUrl)
    {
        $pathInfo     = $this->parsePath($streamUrl);
        $repository   = $this->getRepository($pathInfo);
        $ref          = isset($pathInfo['fragment']) ? $pathInfo['fragment'] : 'HEAD';

        $arguments  = array();
        if (isset($pathInfo['query'])) {
            parse_str($pathInfo['query'], $arguments);
        }

        $fullPath   = $repository->resolveFullPath($pathInfo['path']);
        $url        =  $this->protocol.'://'.$fullPath
                      .'#'.$ref
                      .'?'.http_build_query($arguments);

        return new PathInformation($repository, $url, $fullPath, $ref, $arguments);
    }