return;
}
// walk through the feed
for (AtomEntry entry : feed.getEntries()) {
TypeDefinitionContainerImpl childContainer = null;
List<TypeDefinitionContainer> childContainerList = new ArrayList<TypeDefinitionContainer>();
// walk through the entry
lockTypeLinks();
try {
for (AtomElement element : entry.getElements()) {
if (element.getObject() instanceof AtomLink) {
addTypeLink(repositoryId, entry.getId(), (AtomLink) element.getObject());
} else if (element.getObject() instanceof CmisTypeDefinitionType) {
childContainer = new TypeDefinitionContainerImpl(convert((CmisTypeDefinitionType) element
.getObject()));
} else if (element.getObject() instanceof AtomFeed) {
addTypeDescendantsLevel(repositoryId, (AtomFeed) element.getObject(), childContainerList);
}
}
} finally {
unlockTypeLinks();
}
if (childContainer != null) {
childContainer.setChildren(childContainerList);
containerList.add(childContainer);
}
}
}