configurer.postProcessBeanFactory(factory);
context = new GenericApplicationContext(factory);
context.refresh();
ServiceContainer container = (ServiceContainer) factory.getBean("container");
container.start();
} catch (BeansException e) {
throw new RuntimeException(e);
} catch (ContainerLifecycleException e) {
throw new RuntimeException(e);
}