src.link(trg.getObjectId().getId());
for (String id : tmp )
src.unlink(id);
IDfId newId = src.saveAsNew(true);
monitor.log().debug(" Created: " + newId);
src.revert();
IDfPersistentObject newItem = session.getObject(newId);
cnt++;
monitor.worked(cnt);
// fire events
if (useTransaction) {
events.add(new String[] {newId.getId(),trg.getObjectId().getId()});
} else {
target.getConnection().fireElementCreated( newId.getId() );
target.getConnection().fireElementLink(trg.getObjectId().getId(), newId.getId());
}
if (src instanceof IDfFolder) {
IDfFolder srcFolder = (IDfFolder)src;
IDfFolder trgFolder = (IDfFolder)newItem;