// execute
List<ObjectInFolderContainer> descendants = service.getDescendants(repositoryId, folderId, depth, filter,
includeAllowableActions, includeRelationships, renditionFilter, includePathSegment, null);
if (descendants == null) {
throw new CmisRuntimeException("Descendants are null!");
}
TypeCache typeCache = new TypeCache(repositoryId, service);
JSONArray jsonDescendants = new JSONArray();
for (ObjectInFolderContainer descendant : descendants) {