public String getIdByProcessName(String name) {
    for (ProcessInstance processInstance : processList) {
      if (processInstance.getName().equals(name)) {
        return processInstance.getId();
      }
    }

    return null;
  }
  public String getNameByProcessId(String id) {
    for (ProcessInstance processInstance : processList) {
      if (processInstance.getId().equals(id)) {
        return processInstance.getName();
      }
    }

    return null;
  }
  public ProcessTypeListModel(GridProcessingTypesEnum processType) {
    this.processType = processType;

    List<ProcessInstance> processInstanceList = ModelProcessRegistry.getInstances();

    for (ProcessInstance processInstance : processInstanceList) {

      if (processInstance.getType() == processType) {
        processList.add(processInstance);
      }
    }
  }