while (i.hasNext()) { // go thru tasks or resources
parent = (Node)i.next();
if (! (parent.getImpl() instanceof HasAssignments)) {
continue; //TODO currently getting voidNodeImpl's. This should go away when fixed
}
HasAssignments hasAssignments = (HasAssignments)parent.getImpl();
for (j = hasAssignments.getAssignments().iterator();j.hasNext();) {
Assignment assignment = (Assignment)j.next();
if (assignment.isDefault()) continue;
child = NodeFactory.getInstance().createNode(assignment);
assignments.put(child,parent);
}