public static String relativizeResourceType()

in src/main/java/org/apache/sling/testing/resourceresolver/ResourceTypeUtil.java [52:61]


    public static String relativizeResourceType(String resourceType, String[] searchPath) {
        if (resourceType.startsWith("/")) {
            for (String prefix : searchPath) {
                if (resourceType.startsWith(prefix)) {
                    return resourceType.substring(prefix.length());
                }
            }
        }
        return resourceType;
    }