class WebUrlProvider implements UrlProvider {

    @Override
    public DescriptiveUrlBag toUrl(final Path file) {
        final DescriptiveUrlBag list = new DescriptiveUrlBag();
        final DescriptiveUrl base = this.toUrl();
        list.add(new DescriptiveUrl(URI.create(String.format("%s%s", base.getUrl(), URIEncoder.encode(
            PathNormalizer.normalize(PathRelativizer.relativize(PathNormalizer.normalize(host.getDefaultPath(), true), file.getAbsolute()))
            ))).normalize(),
                base.getType(),
                base.getHelp())
        );
        return list;
    }

    public  WebUrlProvider(final Host host);

}