// walk through all tags in entry
while (true) {
int event = parser.getEventType();
if (event == XMLStreamReader.START_ELEMENT) {
AtomElement element = parseElement(parser);
if (element != null) {
// add to entry
result.addElement(element);
// find and set object id
if (element.getObject() instanceof CmisObjectType) {
for (CmisProperty prop : ((CmisObjectType) element.getObject()).getProperties().getProperty()) {
if (EnumPropertiesBase.CMIS_OBJECT_ID.value().equals(prop.getPropertyDefinitionId())) {
result.setId(((CmisPropertyId) prop).getValue().get(0));
}
}
} else if (element.getObject() instanceof CmisTypeDefinitionType) {
result.setId(((CmisTypeDefinitionType) element.getObject()).getId());
}
}
} else if (event == XMLStreamReader.END_ELEMENT) {
break;
} else {