// 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();
final ProgressWindow progress = new ProgressWindow("Building Dialog");
// 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);
context.set(ContextKey.SECURITY_CONTEXT, framework.getSecurityFramework());
control.proceed();
}
};