Resource root = prefixToRootResource.get(prefix);
if (root == null)
throw new IllegalArgumentException(String.format("Unknown prefix for asset path '%s'.", path));
return root.forFile(path.substring(colonx + 1));
}
private Asset getLocalizedAssetFromResource(Resource unlocalized, Locale locale)
{
Resource localized = locale == null ? unlocalized : unlocalized.forLocale(locale);