j.setReservation();
IDuccWorkReservation dr = (IDuccWorkReservation) job;
IDuccReservationMap rm = dr.getReservationMap();
if ( (rm.size() > 0) && !job.isCompleted() ) { // need to recover, apparently RM crashed. hmph.
for ( IDuccReservation res : rm.values() ) { // build up Shares from the incoming state
NodeIdentity ni = res.getNodeIdentity();
Machine m = scheduler.getMachine(ni);
if ( m == null ) { // not known, huh? maybe next epoch it will have checked in
refuse(j, "Cannot restore reservation because node " + ni.getName() + " is unknown.");
return false; // so we don't add it to global tables