if(fragment.getLeafFragment()){
FragmentContext context = new FragmentContext(bee.getContext(), fragment, null, bee.getContext().getFunctionImplementationRegistry());
ControlTunnel tunnel = bee.getContext().getController().getTunnel(fragment.getForeman());
NonRootStatusReporter listener = new NonRootStatusReporter(context, tunnel);
FragmentRoot rootOperator = bee.getContext().getPlanReader().readFragmentOperator(fragment.getFragmentJson());
FragmentExecutor fr = new FragmentExecutor(context, bee, rootOperator, listener);
bee.addFragmentRunner(fr);
}else{ // isIntermediate, store for incoming data.
NonRootFragmentManager manager = new NonRootFragmentManager(fragment, bee);
bee.getContext().getWorkBus().setFragmentManager(manager);
}