flatten[1] = true;
LOGenerate generate = new LOGenerate(innerPlan, expPlans, flatten);
innerPlan.add(generate);
innerPlan.connect(innerLoad, generate);
innerPlan.connect(innerLoad2, generate);
foreach.setInnerPlan(innerPlan);
foreach.setAlias("B");
plan.add(foreach);