code: public void loadSnapshot(String vm, String snapshotUuid) {
          if (!EnumSet.of(POWEROFF, SAVED).contains(vmState(vm))) {
              powerOff(vm);
          }
          execute("snapshot", vm, "restore", snapshotUuid);
          start(vm);
      }
docs: Shuts down if running, restores the snapshot and starts VM.