TaskSnapshot snapshot=(TaskSnapshot)task.getSnapshot(new Integer(s));
if (snapshot==null) continue;
AssociationList snapshotAssignments=snapshot.getHasAssignments().getAssignments();
if (snapshotAssignments.size()>0){
// ArrayList<Assignment> assignmentsToLink=new ArrayList<Assignment>();
for (Iterator a=snapshotAssignments.listIterator();a.hasNext();){
Assignment assignment=(Assignment)a.next();
Resource resource=assignment.getResource();
if (resource==ResourceImpl.getUnassignedInstance()) continue;
Resource destResource=resourceMap.get(resource.getUniqueId());
if (destResource!=null){