FlowGraphGenerator fp1 = new FlowGraphGenerator();
fp1.defineInput("in");
fp1.defineFlowPart("fp2", fp2.toGraph());
fp1.defineOutput("out");
fp1.connect("in", "fp2").connect("fp2", "out");
gen.defineInput("in");
gen.defineFlowPart("fp1", fp1.toGraph());
gen.defineOutput("out");
gen.connect("in", "fp1").connect("fp1", "out");