childrenOfFolderId = new ArrayList<ObjectInFolderContainer>();
if (null != children) {
for (ObjectInFolderData child : children.getObjects()) {
ObjectInFolderContainerImpl oifc = new ObjectInFolderContainerImpl();
String childId = child.getObject().getId();
List<ObjectInFolderContainer> subChildren = getDescendantsIntern(repositoryId, childId, filter,
includeAllowableActions, includeRelationships, renditionFilter, includePathSegments,
level + 1, maxLevels, folderOnly, objectInfos, user);
oifc.setObject(child);
if (null != subChildren) {
oifc.setChildren(subChildren);
}
childrenOfFolderId.add(oifc);
}
}
}