docs: public static void upgradeProcessInstanceByNodeNames(
              KieRuntime kruntime,
              Long fromProcessId,
              String toProcessId,
              Map<String, String> nodeNamesMapping) {
  
          Map<String, Long> nodeIdMapping = new HashMap<String, Long>();
  
          String fromProcessIdString = kruntime.getProcessInstance(fromProcessId).getProcessId();
          Process processFrom = kruntime.getKieBase().getProcess(fromProcessIdString);
          Process processTo = kruntime.getKieBase().getProcess(toProcessId);
  
          for (Map.Entry<String, String> entry : nodeNamesMapping.entrySet()) {
              String from = null;
              Long to = null;
  
              if (processFrom instanceof WorkflowProcess) {
                  from = getNodeId(((WorkflowProcess) processFrom).getNodes(), entry.getKey(), true);
              } else if (processFrom instanceof RuleFlowProcess) {
                  from = getNodeId(((RuleFlowProcess) processFrom).getNodes(), entry.getKey(), true);
              } else if (processFrom != null) {
                  throw new IllegalArgumentException("Suported processes are WorkflowProcess and RuleFlowProcess, it was:" + processFrom.getClass());
              } else {
                  throw new IllegalArgumentException("Can not find process with id: " + fromProcessIdString);
              }
  
              if (processTo instanceof WorkflowProcess) {
                  to = Long.valueOf(getNodeId(((WorkflowProcess) processTo).getNodes(), entry.getValue(), false));
              } else if (processTo instanceof RuleFlowProcess) {
                  to = Long.valueOf(getNodeId(((RuleFlowProcess) processTo).getNodes(), entry.getValue(), false));
              } else if (processTo != null) {
                  throw new IllegalArgumentException("Suported processes are WorkflowProcess and RuleFlowProcess, it was:" + processTo.getClass());
              } else {
                  throw new IllegalArgumentException("Can not find process with id: " + toProcessId);
              }
              nodeIdMapping.put(from, to);
          }
  
          upgradeProcessInstance(kruntime, fromProcessId, toProcessId, nodeIdMapping);
      }