code: private void getRunningFlowsIdsHelper(final List<Integer> allIds,
        final Collection<Pair<ExecutionReference, ExecutableFlow>> collection) {
      for (final Pair<ExecutionReference, ExecutableFlow> ref : collection) {
        allIds.add(ref.getSecond().getExecutionId());
      }
    }
docs: /* Helper method to flow ids of all running flows