docs: @Override
      public void onNodeAdded(Node node) {
          if (node instanceof RuleSetNode) {
              RuleSetNode ruleSetNode = (RuleSetNode) node;
              String ruleFlowGroup = ruleSetNode.getRuleFlowGroup();
              if (ruleFlowGroup != null) {
                  addSharedReference(ruleFlowGroup,
                                     PartType.RULEFLOW_GROUP);
              }
          } else if (node instanceof WorkItemNode) {
              String taskName = ((WorkItemNode) node).getWork().getName();
              addSharedReference(taskName,
                                 PartType.TASK_NAME);
          } else if (node instanceof SubProcessNode) {
              SubProcessNode subProcess = (SubProcessNode) node;
  
              String processName = subProcess.getProcessName();
              if (!StringUtils.isEmpty(processName)) {
                  addResourceReference(processName,
                                       ResourceType.BPMN2_NAME);
              }
              String processId = subProcess.getProcessId();
              if (!StringUtils.isEmpty(processId)) {
                  addResourceReference(processId,
                                       ResourceType.BPMN2);
              }
          }
      }