// fetch dialog meta data
final Dialog dialog = repository.getDialog(name);
// create coordinator instance
final InteractionCoordinator coordinator = new InteractionCoordinator(
dialog, globalContext, this
);
coordinators.put(name, coordinator);
// top level interaction unit & context
final Context context = new Context();
// build reification pipeline
Function<Context> prepareContext = new Function<Context>() {
@Override
public void execute(Control<Context> control) {
context.set(ContextKey.EVENTBUS, coordinator.getLocalBus());
context.set(ContextKey.COORDINATOR, coordinator);
control.proceed();
}
};