private Collection<?> resolveChildren(FieldData field) {
        if (field.metaData.isLazy()) {
            // The field is explicitly lazy, e.g. @Children Lazy<List<Page>> children. Thus, we are asked to load the children at this point since
            // the lazy field is trying to access the children.
            return loadChildren(field);
        } else {
            // Create a lazy loading proxy for the collection
            return (Collection<?>) field.metaData.getCollectionProxyFactory().newInstance(new LazyChildrenLoader(field, this));
        }
    }
private Collection < ? > resolveChildren ( FieldData field ) { if ( field . metaData . isLazy ( ) ) { return loadChildren ( field ) ; } else { return ( Collection < ? > ) field . metaData . getCollectionProxyFactory ( ) . newInstance ( new LazyChildrenLoader ( field , this ) ) ; } }
<p>
Resolves the {@link org.apache.sling.api.resource.Resource#listChildren() children}
of a parent resource. This parent resource may be either:
</p>
<ul>
<li>The current resource, if no {@link io.neba.api.annotations.Path} or
{@link io.neba.api.annotations.Reference} annotations are present</li>
<li>A resource designated by an absolute or relative path of a path annotation</li>
<li>A referenced resource (which may be combined with a {@link io.neba.api.annotations.Path} annotation)</li>
</ul>