@Override
    public AssetInfo locate(AssetManager manager, AssetKey key) {
        String name = key.getName();
        try{
            //TODO: remove workaround for SDK
//            URL url = new URL(root, name);
            if(name.startsWith("/")){
                name = name.substring(1);
            }
            URL url = new URL(root.toExternalForm() + name);
            return UrlAssetInfo.create(manager, key, url);
        }catch (FileNotFoundException e){
            return null;
        }catch (IOException ex){
            logger.log(Level.WARNING, "Error while locating " + name, ex);
            return null;
        }
    }
<code>UrlLocator</code> is a locator that combines a root URL
and the given path in the AssetKey to construct a new URL
that allows locating the asset.
<p>
The root path must be a valid {@link URL}, for example, <br>
<code>https://www.example.com/assets/</code>

@author Kirill Vainer
jme3-core/src/plugins/java/com/jme3/asset/plugins/UrlLocator.java