String serverHostAndPort = manager.getServerNameAndPort();
// Annotate the URI with the host name and port from the session and
// return as a URL
assetURI.setServerHostAndPort(serverHostAndPort);
return assetURI.toURL();
}
/**
* Given a URI as an asset, returns a URL that can be used to download the
* asset. This method uses the current primary server session as the host