public static boolean isInsideProject(List<String> projectResources, CmsResource resource) {

        String resourcename = resource.getRootPath();
        return isInsideProject(projectResources, resourcename);
    }
public static boolean isInsideProject ( List < String > projectResources , CmsResource resource ) { String resourcename = resource . getRootPath ( ) ; return isInsideProject ( projectResources , resourcename ) ; }
Checks if the full resource name (including the site root) of a resource matches
any of the project resources of a project.<p>

@param projectResources a List of project resources as Strings
@param resource the resource to check
@return true, if the resource is "inside" the project resources