protected Resource createNext()

in src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableResourceProvider.java [464:482]


        protected Resource createNext(Object child, ResourceResolver resourceResolver, Authorizable authorizable,
                String path) throws RepositoryException {
            Resource next = null;
            if (child instanceof Resource) {
                Resource childResource = (Resource)child;
                //calculate the path relative to the home folder root
                String relPath = childResource.getPath().substring(authorizable.getPath().length() + 1);

                // check if the relPath resolves any valid property names
                Iterator<String> propertyNames = getPropertyNames(relPath, authorizable);
                if (propertyNames.hasNext()) {
                    next = new NestedAuthorizableResource(authorizable,
                            resourceResolver, String.format("%s/%s", path, relPath),
                            AuthorizableResourceProvider.this,
                            relPath);
                }
            }
            return next;
        }