class GoogleStorageUrlProvider implements UrlProvider {

    @Override
    public DescriptiveUrlBag toUrl(final Path file) {
        final DescriptiveUrlBag list = new DefaultUrlProvider(session.getHost()).toUrl(file);
        if(file.isFile()) {
            // Authenticated browser download using cookie-based Google account authentication in conjunction with ACL
            list.add(new DescriptiveUrl(URI.create(String.format("https://storage.cloud.google.com%s",
                    URIEncoder.encode(file.getAbsolute()))), DescriptiveUrl.Type.authenticated,
                    MessageFormat.format(LocaleFactory.localizedString("{0} URL"), LocaleFactory.localizedString("Authenticated"))));
        }
        return list;
    }

    public  GoogleStorageUrlProvider(final GoogleStorageSession session);

}