*/
public FlowBuilder<Q> add(Flow... flows) {
Collection<Flow> list = new ArrayList<Flow>(Arrays.asList(flows));
String name = "split" + (parent.splitCounter++);
int counter = 0;
State one = parent.currentState;
Flow flow = null;
if (!(one instanceof FlowState)) {
FlowBuilder<Flow> stateBuilder = new FlowBuilder<Flow>(name + "_" + (counter++));
stateBuilder.currentState = one;
flow = stateBuilder.build();
}
if (flow != null) {
list.add(flow);
}
State next = parent.createState(list, executor);
parent.currentState = next;
return parent;
}