if (!targetDir.isAbsolute()) {
File home = context.getBroker().getConfiguration().getExistHome();
targetDir = new File(home, target);
}
output.startDocument();
output.startElement(new QName("sync", FileModule.NAMESPACE_URI), null);
output.addAttribute(new QName("collection", FileModule.NAMESPACE_URI), collectionPath);
output.addAttribute(new QName("dir", FileModule.NAMESPACE_URI), targetDir.getAbsolutePath());
saveCollection(XmldbURI.create(collectionPath), targetDir, startDate, output);