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
url.addParameter(Constants.PARAM_MAX_ITEMS, 1000);
url.addParameter(Constants.PARAM_SKIP_COUNT, 0);