String url) {
// copied from ObjectElement implementation
ApplicationContext ac = ContextInternals.getApplicationContext(context);
PackageResources pr = ac.getPackageResources();
if (pr != null) {
PackagedURLEncoder packagedURLEncoder = ac.getPackagedURLEncoder();
if (packagedURLEncoder != null) {
String encoded = packagedURLEncoder.getEncodedURI(url);
PackageResources.Asset prAsset = new PackageResources.Asset(
url, false);
pr.addAssetURLMapping(encoded, prAsset);
}
}