ValidatorLookupService validatorLookupService) {
List<ChildResource> children = new ArrayList<ChildResource>();
Resource childrenResource = rootResource.getChild(Constants.CHILDREN);
if (childrenResource != null) {
for (Resource child : childrenResource.getChildren()) {
ChildResource childResource = new ChildResourceImpl(modelResource, child, validatorLookupService);
children.add(childResource);
children.addAll(buildChildren(modelResource, child, validatorLookupService));
}
}
return children;