Flow first = firstFlow( path + "/first", true );
Flow second = secondFlow( first.getSink(), path + "/second" );
Flow third = thirdFlow( second.getSink(), path + "/third" );
Flow fourth = fourthFlow( third.getSink(), path + "/fourth" );
LockingFlowListener firstFlowListener = new LockingFlowListener();
LockingFlowListener secondFlowListener = new LockingFlowListener();
LockingFlowListener thirdFlowListener = new LockingFlowListener();
LockingFlowListener fourthFlowListener = new LockingFlowListener();
first.addListener( firstFlowListener );
second.addListener( secondFlowListener );
third.addListener( thirdFlowListener );
fourth.addListener( fourthFlowListener );