link = loadLink(repositoryId, folderId, Constants.REL_DOWN, Constants.MEDIATYPE_CHILDREN);
if (link != null) {
url = new UrlBuilder(link);
// we only want the object ids
url.addParameter(Constants.PARAM_FILTER, "cmis:objectId");
url.addParameter(Constants.PARAM_ALLOWABLE_ACTIONS, false);
url.addParameter(Constants.PARAM_RELATIONSHIPS, IncludeRelationships.NONE);
url.addParameter(Constants.PARAM_RENDITION_FILTER, "cmis:none");
url.addParameter(Constants.PARAM_PATH_SEGMENT, false);
// 1000 children should be enough to indicate a problem