// + ", max levels " + maxLevels);
List<ObjectInFolderContainer> childrenOfFolderId = null;
if (maxLevels == -1 || level < maxLevels) {
String orderBy = PropertyIds.NAME;
ObjectInFolderList children = getChildrenIntern(repositoryId, folderId, filter, orderBy,
includeAllowableActions, includeRelationships, renditionFilter, includePathSegments, 1000, 0,
folderOnly, objectInfos, user);
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);