UrlBuilder url = new UrlBuilder(getServiceDocURL());
url.addParameter(Constants.PARAM_REPOSITORY_ID, repositoryId);
// read and parse
HttpUtils.Response resp = read(url);
ServiceDoc serviceDoc = parse(resp.getStream(), ServiceDoc.class);
// walk through the workspaces
for (RepositoryWorkspace ws : serviceDoc.getWorkspaces()) {
if (ws.getId() == null) {
// found a non-CMIS workspace
continue;
}