IAssetSpecification spec,
IResourceLocation specificationLocation)
{
AssetType type = spec.getType();
String path = spec.getPath();
ILocation location = spec.getLocation();
if (type == AssetType.EXTERNAL)
return new ExternalAsset(path, location);
if (type == AssetType.PRIVATE)