code: private boolean canStay(VM vm) {
          Mapping m = rp.getSourceModel().getMapping();
          if (m.isRunning(vm)) {
              int curPos = rp.getNode(m.getVMLocation(vm));
              if (!rp.getVMAction(vm).getDSlice().getHoster().contains(curPos)) {
                  return false;
              }
              IStateInt[] loads = load(curPos);
              return loadWith(curPos, loads, vm) <= 1.0;
          }
          return false;
      }
docs: Check if a VM can stay on its current node.
  
  @param vm the VM
  @return {@code true} iff the VM can stay