//dependencies
//Set<DependencyKey> initialLinkIds=null;
for (Iterator i=projectData.getTasks().iterator();i.hasNext();){
TaskData successorssorData=(TaskData)i.next();
if (successorssorData.getPredecessors()!=null){
final Task successor=(Task)((Node)taskNodeMap.get(successorssorData)).getImpl();
for (Iterator j=successorssorData.getPredecessors().iterator();j.hasNext();){
LinkData linkData=(LinkData)j.next();
// if (initialLinkIds==null){
// initialLinkIds=new HashSet<DependencyKey>();
// project.setInitialLinkIds(initialLinkIds);
// }
// initialLinkIds.add(new DependencyKey(linkData.getPredecessorId(),linkData.getSuccessorId()/*,externalId*/));
Dependency dependency=(Dependency)deserialize(linkData,reindex);
if (linkData.getPredecessor() == null) {
System.out.println("null pred - this shouldn't happen. skipping"); // todo treat it
continue;
}
final Task predecessor=(Task)((Node)taskNodeMap.get(linkData.getPredecessor())).getImpl();
connectDependency(dependency,predecessor,successor);
linkData.emtpy(); //why is this there?
}
}