code: public static Map<IntVar, VM> makePlacementMap(ReconfigurationProblem rp) {
          Map<IntVar, VM> m = new HashMap<>(rp.getFutureRunningVMs().size());
          for (VM vm : rp.getFutureRunningVMs()) {
              IntVar v = rp.getVMAction(vm).getDSlice().getHoster();
              m.put(v, vm);
          }
          return m;
      }
docs: Map a map where keys are the placement variable of the future-running VMs
  and values are the VM identifier.
  
  @param rp the problem
  @return the resulting map.