current.createResource(name, type);
if (mimetype != null)
((EXistResource)res).setMimeType(mimetype);
res.setContent(f);
if(dialog == null)
<BUG>System.out.println("restoring " + name);
</BUG>
Date date_created = null;
Date date_modified = null;
if (created != null)

current.createResource(name, type);
if (mimetype != null)
((EXistResource)res).setMimeType(mimetype);
res.setContent(f);
if(dialog == null)
System.out.println("Restoring " + name);
Date date_created = null;
Date date_modified = null;
if (created != null)
