resourceDAO.fillChildren(collection, 0, -1);
String childPaths[] = collection.getChildren();
xmlWriter.writeStartElement(DumpConstants.CHILDREN);
OMText emptyText = factory.createOMText("");
emptyText.serialize(xmlWriter);
xmlWriter.flush();
for (String childPath : childPaths) {
// we would be writing the start element of the child and its name here.
try {
String resourceName = RegistryUtils.getResourceName(childPath);