in src/main/java/org/apache/sling/bundleresource/impl/PathMapping.java [91:103]
String getEntryPath(final String resourcePath) {
if (entryRootPrefix == null) {
return resourcePath;
}
if (resourcePath.startsWith(resourceRootPrefix)) {
return entryRootPrefix.concat(resourcePath.substring(resourceRootPrefix.length()));
} else if (resourcePath.equals(resourceRoot)) {
return entryRoot;
}
return null;
}