docs: private long getProcessInstanceId(String instanceId) throws NumberFormatException {
          int endIndx = instanceId.indexOf("/");
  
          if (endIndx > -1) {
              return Long.parseLong(instanceId.substring(0, endIndx));
          }
  
          return Long.parseLong(instanceId);
  
      }