if ((element != null) && (element.getObject() instanceof CmisRepositoryInfoType)) {
workspace.setId(((CmisRepositoryInfoType) element.getObject()).getRepositoryId());
}
// add to workspace
workspace.addElement(element);
} else if (event == XMLStreamReader.END_ELEMENT) {
break;
} else {
if (!next(parser)) {
break;