collectionElement.setAttributeNS(null, ATTRIBUTE_UUID, getDelegate().getUUID());
}
Element[] existingDocumentElements = helper.getChildren(collectionElement,
ELEMENT_DOCUMENT);
for (int i = 0; i < existingDocumentElements.length; i++) {
collectionElement.removeChild(existingDocumentElements[i]);
}
collectionElement.setAttribute(ATTRIBUTE_TYPE, getType());
collectionElement.setAttribute(ATTRIBUTE_HREF, getHref());
collectionElement.setAttribute(ATTRIBUTE_ALL_LANGUAGES, Boolean.toString(showAllLanguages()));