* @param resource the top-level element
*/
private void loadRelatedResource(Element resource) throws InvalidDDMSException {
Elements children = resource.getChildElements(RelatedResource.OLD_INNER_NAME, getNamespace());
if (children.size() <= 1) {
_relatedResources.add(new RelatedResource(resource));
}
else {
for (int i = 0; i < children.size(); i++) {
Element copy = new Element(resource);
copy.removeChildren();
copy.appendChild(new Element(children.get(i)));
_relatedResources.add(new RelatedResource(copy));
}
}
}