code: private void addSubprocesses(TBaseElement process, Process processVO) {
          List<Process> subprocs = processVO.getSubprocesses();
          if (subprocs != null) {
              for (Process subproc : subprocs) {
                  // Add for subprocesses
                  XmlObject flow = getProcessFlowElement(process);
                  if (flow != null) {
                      // Convert for substitutes
                      flow = substitute(flow, SubProcessDocument.type.getDocumentElementName(),
                              TSubProcess.type);
                      TSubProcess subProcess = (TSubProcess) flow.changeType(TSubProcess.type);
                      subProcess.setId("P" + subproc.getId());
                      subProcess.setName(subproc.getName());
                      subProcess.addNewExtensionElements().set(getExtentionElements(subproc));
                      addProcessElements(subProcess, subproc);
                  }
              }
          }
      }
docs: <p>
  This deals with creating and drawing subprocess elements like exception
  handler
  </p>
  
  @param process
  @param processVO
  @throws XmlException