Iterator<CmisObject> cmisObjectIt;
CmisObject rootObject;
try {
rootObject = cmisSession.getObjectByPath(rootPath);
} catch (CmisObjectNotFoundException e) {
throw new RDFBridgeException(String.format("There is Cmis Object in the path: %s", rootPath), e);
}
if (hasType(rootObject, BaseTypeId.CMIS_FOLDER)) {
cmisObjectIt = ((Folder) rootObject).getChildren().iterator();
} else {
throw new RDFBridgeException(String.format("A folder object is expected at the path: %s",
rootPath));
}
while (cmisObjectIt.hasNext()) {
CmisObject o = cmisObjectIt.next();