String virtualFolder = pathPrefixToAlias.get(pathPrefix);
// Don't want that slash seperating the folder from the rest of the path.
String path = resourcePath.substring(pathPrefix.length() + 1);
return new AssetAlias(virtualFolder, path);
}
}
// This is a minor misuse of the UnknownValueException but the exception reporting
// is too useful to pass up.