in src/main/java/org/apache/sling/feature/cpconverter/shared/RepoPath.java [101:112]
public boolean startsWith(@Nullable RepoPath otherPath) {
if (otherPath == null || isRepositoryPath || otherPath.isRepositoryPath) {
return false;
}
if (path.size() < otherPath.path.size()) {
return false;
}
List<String> l = new ArrayList<>(path.subList(0, otherPath.path.size()));
return l.equals(otherPath.path);
}