// We start the application
// it should:
// - instantiate the plugins
// - bind the beans from the plugins in the container
// we rely on the lazy nature of the beans for not really starting...
Application application = injector.getApplication();
application.start();
// At this point the application is not really started
// we must go through the other CDI phases for effectively registering
// the beans in the container
this.context = (CDIContext)application.getInjectionContext();
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}