public Iterator<Resource> listChildren(Resource resource) {
final ResourceResolver resolver = resource.getResourceResolver();
final String relativePath = getRelativePath(resource.getPath());
if (relativePath != null) {
final List<ResourceHolder> candidates = new ArrayList<ResourceHolder>();
<BUG>final Iterator<Resource> resources = picker.pickResources(resolver, relativePath);
</BUG>
while (resources.hasNext()) {
Resource parentResource = resources.next();
final ParentHidingHandler handler = new ParentHidingHandler(parentResource);

public Iterator<Resource> listChildren(Resource resource) {
final ResourceResolver resolver = resource.getResourceResolver();
final String relativePath = getRelativePath(resource.getPath());
if (relativePath != null) {
final List<ResourceHolder> candidates = new ArrayList<ResourceHolder>();
final Iterator<Resource> resources = picker.pickResources(resolver, relativePath).iterator();
while (resources.hasNext()) {
Resource parentResource = resources.next();
final ParentHidingHandler handler = new ParentHidingHandler(parentResource);
