in src/main/java/org/apache/sling/jcr/contentloader/internal/BundleContentLoader.java [640:661]
private String getName(String path) {
int lastSlash = path.lastIndexOf('/');
String name = (lastSlash < 0) ? path : path.substring(lastSlash + 1);
// check for encoded characters (%xx)
// has encoded characters, need to decode
if (name.indexOf('%') >= 0) {
try {
return URLDecoder.decode(name, "UTF-8");
} catch (UnsupportedEncodingException uee) {
// actually unexpected because UTF-8 is required by the spec
log.error("Cannot decode {} because the platform has no support for UTF-8, using undecoded", name);
} catch (Exception e) {
// IllegalArgumentException or failure to decode
log.error("Cannot decode " + name + ", using undecoded", e);
}
}
// not encoded or problems decoding, return the name unmodified
return name;
}