appContext.set(Application.class, jfxApplication);
appContext.set("primaryStage", primaryStage);
// appContext.set(Realm.class, SWTObservables.getRealm(display));
appContext.set(UISynchronize.class, new UISynchronize() {
public void syncExec(final Runnable runnable) {
if (javafx.application.Platform.isFxApplicationThread()) {
runnable.run();
} else {