code: private void getActiveFlowHelper(final ArrayList<ExecutableFlow> flows,
        final Collection<Pair<ExecutionReference, ExecutableFlow>> collection) {
      for (final Pair<ExecutionReference, ExecutableFlow> ref : collection) {
        flows.add(ref.getSecond());
      }
    }
docs: /*
  Helper method to get all running flows from a Pair<ExecutionReference,
  ExecutableFlow collection