// Try to open the output stream. If the repository tells
// us we already have the most up-to-date version, then we
// simply return that. Otherwise, we attempt to download
// the asset.
AssetStream stream = repository.openAssetStream(assetURI);
AssetResponse response = stream.getResponse();
logger.fine("Got an asset stream with response " + response +
" for asset " + uriString);
// record statistic
long streamTime = System.currentTimeMillis() - startTime;