* @param collected The output zip file
* @throws java.io.IOException
*/
static Tag doIndex(Collection resources) throws IOException {
Tag repository = new Tag("repository");
repository.addAttribute("lastmodified", new Date());
repository.addAttribute("name", name);
for (Iterator i = resources.iterator(); i.hasNext();) {
ResourceImpl resource = (ResourceImpl) i.next();
repository.addContent(resource.toXML());